Compare commits
2 Commits
a1b238e86b
...
7a193d6647
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a193d6647
|
||
|
|
bb82b6b462
|
@@ -24,7 +24,7 @@ so:
|
||||
After these steps, you should have a working Rails app with a handful of test
|
||||
users running on [http://localhost:3000](http://localhost:3000).
|
||||
Log in with username "admin" and password "admin is admin". All users listed on
|
||||
[http://localhost:3000/admin/ldap_users](http://localhost:3000/admin/ldap_users)
|
||||
[http://localhost:3000/admin/users](http://localhost:3000/admin/users)
|
||||
have the password "user is user".
|
||||
|
||||
### Rails app
|
||||
|
||||
@@ -22,6 +22,7 @@ class User < ApplicationRecord
|
||||
validates_format_of :cn, without: /\A-/,
|
||||
if: Proc.new{ |u| u.cn.present? },
|
||||
message: "is invalid. Usernames need to start with a letter."
|
||||
# FIXME This needs a server restart to apply values
|
||||
validates_format_of :cn, without: /\A(#{Setting.reserved_usernames.join('|')})\z/i,
|
||||
message: "has already been taken"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user