Commit 0db36897e61205dda4644cdc77fa79dcc7b9114a
1 parent
5c1a360f
Exists in
spb-stable
and in
3 other branches
Add instructions for custom password length limits
Showing
2 changed files
with
15 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,9 @@ |
| 1 | +# Custom password length limits | |
| 2 | + | |
| 3 | +If you want to enforce longer user passwords you can create an extra Devise initializer with the following steps: | |
| 4 | + | |
| 5 | +```bash | |
| 6 | +cd /home/git/gitlab | |
| 7 | +sudo -u git -H cp config/initializers/devise_password_length.rb.example config/initializers/devise_password_length.rb | |
| 8 | +sudo -u git -H editor config/initializers/devise_password_length.rb # inspect and edit the new password length limits | |
| 9 | +``` | ... | ... |