Redmine plugin for locking of account at failed login.
Set the count of allow failed logins in the setting of Redmine administrator.
Redmine 3.1.x
git clone
to plugins/redmine_account_lockable
on your Redmine path.
$ git clone https://github.com/maeda-m/redmine_account_lockable.git /path/to/your-redmine/plugins/redmine_account_lockable
Then, migrate:
$ cd /path/to/your-redmine
$ rake redmine:plugins:migrate NAME=redmine_account_lockable RAILS_ENV=production
That's all.
At first, rollback schema:
$ cd /path/to/your-redmine
$ rake redmine:plugins:migrate NAME=redmine_account_lockable VERSION=0 RAILS_ENV=production
Then, remove plugins/redmine_account_lockable
directory.
$ cd /path/to/your-redmine
$ rake db:create RAILS_ENV=test
$ rake db:migrate RAILS_ENV=test
$ rake redmine:plugins:migrate RAILS_ENV=test NAME=redmine_account_lockable
$ rake redmine:load_default_data RAILS_ENV=test
$ rake redmine:plugins:test NAME=redmine_account_lockable
# => rake redmine:plugins:test:functionals NAME=redmine_account_lockable
# => rake redmine:plugins:test:integration NAME=redmine_account_lockable
# => rake redmine:plugins:test:units NAME=redmine_account_lockable
- Fork it
- Create your feature branch:
git checkout -b new-feature
- Commit your changes:
git commit -am 'add some new feature'
- Push to the branch:
git push origin new-feature
- Create new Pull Request
Please report from here.
See MIT-LICENSE for further details.