Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
0db36897
Commit
0db36897
authored
Jan 13, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add instructions for custom password length limits
parent
5c1a360f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
config/initializers/devise_password_length.rb.example
config/initializers/devise_password_length.rb.example
+6
-0
doc/security/password_length_limits.md
doc/security/password_length_limits.md
+9
-0
No files found.
config/initializers/devise_password_length.rb.example
0 → 100644
View file @
0db36897
Devise.setup do |config|
# The following line changes the password length limits for new users. In the
# example below the minimum length is 12 characters, and the maximum length
# is 128 characters.
config.password_length = 12..128
end
doc/security/password_length_limits.md
0 → 100644
View file @
0db36897
# Custom password length limits
If you want to enforce longer user passwords you can create an extra Devise initializer with the following steps:
```
bash
cd
/home/git/gitlab
sudo
-u
git
-H
cp
config/initializers/devise_password_length.rb.example config/initializers/devise_password_length.rb
sudo
-u
git
-H
editor config/initializers/devise_password_length.rb
# inspect and edit the new password length limits
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment