Skip to content

Commit 39a80c4

Browse files
committed
fix sign up optional bug
1 parent 62dd329 commit 39a80c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Authenticator/States/SignUpState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SignUpState: AuthenticatorBaseState {
3030
case .username:
3131
username = field.value
3232
case .password:
33-
password = field.value
33+
password = !field.value.isEmpty ? field.value : nil
3434
default:
3535
if let key = field.field.attributeType.attributeKey {
3636
attributes.append(

0 commit comments

Comments
 (0)