Adding crypto package to hash user's password on our User Model. Create our User Model with some helpers. Creating migration for our users table.
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 49s
Some checks failed
Deploy Greenlight API / deploy (push) Failing after 49s
This commit is contained in:
@@ -12,7 +12,7 @@ Regex pour l'e-mail à tester :
|
||||
2. `^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$`
|
||||
*/
|
||||
var (
|
||||
EmailTX, _ = regexp.Compile(`^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$`)
|
||||
EmailRX, _ = regexp.Compile(`^[a-zA-Z0-9._%+\-]+@[a-zA-Z0-9.\-]+\.[a-zA-Z]{2,}$`)
|
||||
)
|
||||
|
||||
// Validator : Contains a map of validation errors
|
||||
|
||||
Reference in New Issue
Block a user