Small nav updates and fixes

This commit is contained in:
2024-08-27 10:36:09 +02:00
parent 6095c31fb9
commit 2f3d64b5b9
4 changed files with 13 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ class User < ApplicationRecord
# validates :email, presence: true, uniqueness: true, format: { with: URI::MailTo::EMAIL_REGEXP }
validates :email, presence: true, uniqueness: true,
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 account" }
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, not_pwned: { message: "might easily be guessed" }