feat: hash user password when sign up
This commit is contained in:
@@ -16,7 +16,7 @@ abstract class _User extends BaseModel {
|
|||||||
@SerializableField(isNullable: false)
|
@SerializableField(isNullable: false)
|
||||||
String? get email;
|
String? get email;
|
||||||
|
|
||||||
@Column(isNullable: false, length: 32)
|
@Column(isNullable: false, length: 64)
|
||||||
@SerializableField(isNullable: true, exclude: true)
|
@SerializableField(isNullable: true, exclude: true)
|
||||||
String? get password;
|
String? get password;
|
||||||
|
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ class Api {
|
|||||||
LoginSuccessSerializer.fromMap,
|
LoginSuccessSerializer.fromMap,
|
||||||
body: {
|
body: {
|
||||||
UserFields.email: email,
|
UserFields.email: email,
|
||||||
UserFields.password: password,
|
UserFields.password: User(email: email, password: password).secret('dgm_password'),
|
||||||
},
|
},
|
||||||
ignoreToken: true,
|
ignoreToken: true,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user