Refactor: Use common password validator

Refactors password validation logic to use a common `PasswordValidator` utility. This ensures consistent password validation rules across different parts of the application, including:

- User login
- Email sign-up
- Password change
- Account removal

Also adds a string resource for password too long error message.
This commit is contained in:
2025-09-01 15:10:14 +08:00
parent 4d319351b7
commit 5c12982908
6 changed files with 159 additions and 34 deletions

View File

@@ -185,5 +185,6 @@
<string name="group_room_enter_fail">加入房间失败</string>
<string name="agent_createing">创建中...</string>
<string name="agent_find">发现</string>
<string name="text_error_password_too_long">Password cannot exceed %1$d characters</string>
</resources>