mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
'working with mobile"
This commit is contained in:
parent
22ba4b45a8
commit
8f303e594c
3 changed files with 4 additions and 4 deletions
|
|
@ -104,8 +104,8 @@ public class LoginController {
|
||||||
@PostMapping("/register")
|
@PostMapping("/register")
|
||||||
|
|
||||||
@Operation(summary = "Register")
|
@Operation(summary = "Register")
|
||||||
public Result<Void> register(@RequestBody LoginDTO login) {
|
public Result<TokenDTO> register(@RequestBody LoginDTO login) {
|
||||||
Production1
|
|
||||||
if (!sysUserService.getAllowUserRegister()) {
|
if (!sysUserService.getAllowUserRegister()) {
|
||||||
throw new RenException("当前不允许普通用户注册");
|
throw new RenException("当前不允许普通用户注册");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -42,4 +42,4 @@ public interface CaptchaService {
|
||||||
* @return true:成功 false:失败
|
* @return true:成功 false:失败
|
||||||
*/
|
*/
|
||||||
boolean validateSMSValidateCode(String phone, String code, Boolean delete);
|
boolean validateSMSValidateCode(String phone, String code, Boolean delete);
|
||||||
}
|
}
|
||||||
|
|
@ -325,7 +325,7 @@ databaseChangeLog:
|
||||||
- sqlFile:
|
- sqlFile:
|
||||||
encoding: utf8
|
encoding: utf8
|
||||||
path: classpath:db/changelog/202508291500.sql
|
path: classpath:db/changelog/202508291500.sql
|
||||||
|
- changeSet:
|
||||||
id: 202501230002_translate_dict_names
|
id: 202501230002_translate_dict_names
|
||||||
author: cheeko
|
author: cheeko
|
||||||
changes:
|
changes:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue