Removed pnwed
This commit is contained in:
@@ -17,7 +17,7 @@ class User < ApplicationRecord
|
|||||||
format: { with: /\b[A-Z0-9._%a-z\-]+@(student\.|)hs\-rm\.de\z/, message: "must be a student.hs-rm.de or hs-rm.de email" }
|
format: { with: /\b[A-Z0-9._%a-z\-]+@(student\.|)hs\-rm\.de\z/, message: "must be a student.hs-rm.de or hs-rm.de email" }
|
||||||
|
|
||||||
validates :password, allow_nil: true, length: { minimum: 12 }
|
validates :password, allow_nil: true, length: { minimum: 12 }
|
||||||
validates :password, not_pwned: { message: "might easily be guessed" }
|
# validates :password, not_pwned: { message: "might easily be guessed" }
|
||||||
|
|
||||||
normalizes :email, with: -> { _1.strip.downcase }
|
normalizes :email, with: -> { _1.strip.downcase }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user