Skip to content

Commit 91eb3e9

Browse files
committed
allow special char in password.
1 parent b18be83 commit 91eb3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mobile/src/main/java/com/windscribe/mobile/ui/auth/SignupViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class SignupViewModel @Inject constructor(
126126
)
127127
return
128128
}
129-
val passwordRegex = Regex("^(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]+$")
129+
val passwordRegex = Regex("^(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9!@#\$%^&*()_+\\-={}\\[\\]:;\"'<>,.?/`~|\\\\]+$")
130130
if (!password.matches(passwordRegex)) {
131131
updateState(
132132
SignupState.Error(

0 commit comments

Comments
 (0)