mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-09-07 00:17:12 +08:00
feat: implement address password authentication feature (#731)
* feat: implement address password authentication feature - Add password field to address table for storing hashed passwords - Implement address authentication APIs (login, change password) - Add automatic password generation for new addresses - Support password login alongside credential login in frontend - Add password management in account settings and admin panel - Add ENABLE_ADDRESS_PASSWORD environment variable for feature control - Update documentation and i18n support - Enhance security with SHA-256 password hashing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * feat: upgrade dependencies --------- Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -38,6 +38,14 @@ const messages: LocaleMessages = {
|
||||
Oauth2FailedGetUserInfoMsg: "Failed to get user info from Oauth2 provider",
|
||||
Oauth2FailedGetAccessTokenMsg: "Failed to get access token from Oauth2 provider",
|
||||
Oauth2FailedGetUserEmailMsg: "Failed to get user email from Oauth2 provider",
|
||||
|
||||
PasswordChangeDisabledMsg: "Password change is disabled",
|
||||
NewPasswordRequiredMsg: "New password is required",
|
||||
InvalidAddressTokenMsg: "Invalid address token",
|
||||
FailedUpdatePasswordMsg: "Failed to update password",
|
||||
PasswordLoginDisabledMsg: "Password login is disabled",
|
||||
EmailPasswordRequiredMsg: "Email and password are required",
|
||||
AddressNotFoundMsg: "Address not found",
|
||||
}
|
||||
|
||||
export default messages;
|
||||
|
||||
@@ -36,4 +36,12 @@ export type LocaleMessages = {
|
||||
Oauth2FailedGetUserInfoMsg: string
|
||||
Oauth2FailedGetAccessTokenMsg: string
|
||||
Oauth2FailedGetUserEmailMsg: string
|
||||
|
||||
PasswordChangeDisabledMsg: string
|
||||
NewPasswordRequiredMsg: string
|
||||
InvalidAddressTokenMsg: string
|
||||
FailedUpdatePasswordMsg: string
|
||||
PasswordLoginDisabledMsg: string
|
||||
EmailPasswordRequiredMsg: string
|
||||
AddressNotFoundMsg: string
|
||||
}
|
||||
|
||||
@@ -38,6 +38,14 @@ const messages: LocaleMessages = {
|
||||
Oauth2FailedGetUserInfoMsg: "从 Oauth2 提供商获取用户信息失败",
|
||||
Oauth2FailedGetAccessTokenMsg: "从 Oauth2 提供商获取访问令牌失败",
|
||||
Oauth2FailedGetUserEmailMsg: "从 Oauth2 提供商获取用户邮箱失败",
|
||||
|
||||
PasswordChangeDisabledMsg: "密码修改已禁用",
|
||||
NewPasswordRequiredMsg: "新密码不能为空",
|
||||
InvalidAddressTokenMsg: "无效的地址令牌",
|
||||
FailedUpdatePasswordMsg: "更新密码失败",
|
||||
PasswordLoginDisabledMsg: "密码登录已禁用",
|
||||
EmailPasswordRequiredMsg: "邮箱和密码不能为空",
|
||||
AddressNotFoundMsg: "邮箱地址不存在",
|
||||
}
|
||||
|
||||
export default messages;
|
||||
|
||||
Reference in New Issue
Block a user