Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ec6e8e9267 | |||
| 05ad83cea1 | |||
| 1235ab455a | |||
| 915d85857a | |||
| df716e60e4 | |||
| 4d3563a5f0 | |||
| 25cb59c56c | |||
| d49482b4ba | |||
| d1d81037a4 | |||
| ec25744942 | |||
| ffdd64a1da | |||
| a04e3353f8 |
@@ -14,7 +14,8 @@
|
|||||||
"redhat.vscode-quarkus",
|
"redhat.vscode-quarkus",
|
||||||
"vscjava.vscode-java-pack",
|
"vscjava.vscode-java-pack",
|
||||||
"redhat.vscode-xml",
|
"redhat.vscode-xml",
|
||||||
"esbenp.prettier-vscode"
|
"esbenp.prettier-vscode",
|
||||||
|
"PeterSchmalfeldt.explorer-exclude"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
-19
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"branches": ["main", { "name": "dev-*", "prerelease": "dev" }],
|
|
||||||
"plugins": [
|
|
||||||
"@semantic-release/commit-analyzer",
|
|
||||||
"@semantic-release/release-notes-generator",
|
|
||||||
"@semantic-release/changelog",
|
|
||||||
[
|
|
||||||
"@semantic-release/exec",
|
|
||||||
{
|
|
||||||
"prepareCmd": "./mvnw versions:set -DnewVersion=${nextRelease.version}",
|
|
||||||
"publishCmd": "./mvnw clean package -Dquarkus.container-image.tag=${nextRelease.version} -DskipTests"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
["@saithodev/semantic-release-gitea", {
|
|
||||||
"giteaUrl": "https://git.demonkernel.io.vn/"
|
|
||||||
|
|
||||||
}]
|
|
||||||
]
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"branches": ["main", { "name": "dev-*", "prerelease": "dev" }],
|
||||||
|
"plugins": [
|
||||||
|
"@semantic-release/commit-analyzer",
|
||||||
|
"@semantic-release/release-notes-generator",
|
||||||
|
"@semantic-release/changelog",
|
||||||
|
[
|
||||||
|
"@semantic-release/exec",
|
||||||
|
{
|
||||||
|
"prepareCmd": "./mvnw versions:set -DnewVersion=${nextRelease.version}",
|
||||||
|
"publishCmd": "if [ \"${branch.name}\" = \"main\" ]; then ./mvnw package -Dquarkus.container-image.tag=${nextRelease.version} -DskipTests; fi"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
[
|
||||||
|
"@saithodev/semantic-release-gitea",
|
||||||
|
{
|
||||||
|
"giteaUrl": "https://git.demonkernel.io.vn/"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,3 +1,24 @@
|
|||||||
|
# [1.0.0-dev.18](https://git.demonkernel.io.vn/FoodSurf/backend/compare/v1.0.0-dev.17...v1.0.0-dev.18) (2026-03-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* add existed phone number check when signup ([df716e6](https://git.demonkernel.io.vn/FoodSurf/backend/commit/df716e60e4465668f704895b55e155a497d35ed7))
|
||||||
|
|
||||||
|
# [1.0.0-dev.17](https://git.demonkernel.io.vn/FoodSurf/backend/compare/v1.0.0-dev.16...v1.0.0-dev.17) (2026-03-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* better build configuration ([d49482b](https://git.demonkernel.io.vn/FoodSurf/backend/commit/d49482b4bac51d4ebb305bed8cfde670fa70d9ec))
|
||||||
|
|
||||||
|
# [1.0.0-dev.16](https://git.demonkernel.io.vn/FoodSurf/backend/compare/v1.0.0-dev.15...v1.0.0-dev.16) (2026-03-23)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* better build configuration ([ec25744](https://git.demonkernel.io.vn/FoodSurf/backend/commit/ec2574494239b5660b740f14947134aa4839f2da))
|
||||||
|
|
||||||
# [1.0.0-dev.12](https://git.demonkernel.io.vn/FoodSurf/backend/compare/v1.0.0-dev.11...v1.0.0-dev.12) (2026-03-22)
|
# [1.0.0-dev.12](https://git.demonkernel.io.vn/FoodSurf/backend/compare/v1.0.0-dev.11...v1.0.0-dev.12) (2026-03-22)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
#Maven
|
|
||||||
target/
|
|
||||||
pom.xml.tag
|
|
||||||
pom.xml.releaseBackup
|
|
||||||
pom.xml.versionsBackup
|
|
||||||
release.properties
|
|
||||||
.flattened-pom.xml
|
|
||||||
|
|
||||||
# Eclipse
|
|
||||||
.project
|
|
||||||
.classpath
|
|
||||||
.settings/
|
|
||||||
bin/
|
|
||||||
|
|
||||||
# IntelliJ
|
|
||||||
.idea
|
|
||||||
*.ipr
|
|
||||||
*.iml
|
|
||||||
*.iws
|
|
||||||
|
|
||||||
# NetBeans
|
|
||||||
nb-configuration.xml
|
|
||||||
|
|
||||||
# Visual Studio Code
|
|
||||||
.vscode
|
|
||||||
.factorypath
|
|
||||||
|
|
||||||
# OSX
|
|
||||||
.DS_Store
|
|
||||||
|
|
||||||
# Vim
|
|
||||||
*.swp
|
|
||||||
*.swo
|
|
||||||
|
|
||||||
# patch
|
|
||||||
*.orig
|
|
||||||
*.rej
|
|
||||||
|
|
||||||
# Local environment
|
|
||||||
.env
|
|
||||||
|
|
||||||
# Plugin directory
|
|
||||||
/.quarkus/cli/plugins/
|
|
||||||
# TLS Certificates
|
|
||||||
.certs/
|
|
||||||
@@ -33,6 +33,12 @@ public abstract class User extends PanacheEntity {
|
|||||||
|
|
||||||
@Transactional
|
@Transactional
|
||||||
public void signup(String name, String phone, String rawPassword) {
|
public void signup(String name, String phone, String rawPassword) {
|
||||||
|
// Check existed user
|
||||||
|
Customer existedUser = User.find("phone", phone).firstResult();
|
||||||
|
|
||||||
|
if (existedUser != null) throw new BadRequestException("ExistedUser");
|
||||||
|
|
||||||
|
// Set user
|
||||||
this.name = name;
|
this.name = name;
|
||||||
|
|
||||||
if (!PhoneValidator.isValidInternationalPhone(phone)) {
|
if (!PhoneValidator.isValidInternationalPhone(phone)) {
|
||||||
@@ -43,6 +49,7 @@ public abstract class User extends PanacheEntity {
|
|||||||
|
|
||||||
this.hashedPassword = Password.hash(rawPassword).withArgon2().getResult();
|
this.hashedPassword = Password.hash(rawPassword).withArgon2().getResult();
|
||||||
|
|
||||||
|
// Save user
|
||||||
this.persist();
|
this.persist();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,5 @@ quarkus.container-image.registry=git.demonkernel.io.vn
|
|||||||
quarkus.container-image.group=foodsurf
|
quarkus.container-image.group=foodsurf
|
||||||
quarkus.container-image.name=account-service
|
quarkus.container-image.name=account-service
|
||||||
quarkus.container-image.push=true
|
quarkus.container-image.push=true
|
||||||
quarkus.container-image.build=false
|
quarkus.container-image.build=true
|
||||||
quarkus.container-image.builder=docker
|
quarkus.container-image.builder=docker
|
||||||
quarkus.container-image.tag=latest
|
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"release": "semantic-release",
|
"release": "semantic-release",
|
||||||
"format": "prettier --write \"./**/*.{java,yaml,json,xml}\""
|
"format": "prettier --write \"./**/*.{java,yaml,json,xml}\" \"./**/.*rc\""
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "DemonKernel",
|
"author": "DemonKernel",
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.drinkool</groupId>
|
<groupId>com.drinkool</groupId>
|
||||||
<artifactId>drinkool</artifactId>
|
<artifactId>drinkool</artifactId>
|
||||||
<version>1.0.0-dev.12</version>
|
<version>1.0.0-dev.18</version>
|
||||||
<packaging>pom</packaging>
|
<packaging>pom</packaging>
|
||||||
<properties>
|
<properties>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>17</maven.compiler.source>
|
||||||
|
|||||||
Reference in New Issue
Block a user