pam authentication (#5303)
* add pam support, without extra column * bugfixes for pam login * document options * fix code style * fix codestyle * fix tests * don't call remember_me without password * fix codestyle * improve checks for pam usage (should fix tests) * fix remember_me part 1 * add remember_token column because :rememberable requires either a password or this column. * migrate db for remember_token * move pam_authentication to the right place, fix logic bug in edit.html.haml * fix tests * fix pam authentication, improve username lookup, add comment * valid? is sometimes not honored, return nil instead trying to authenticate with pam * update devise_pam_authenticatable2 and adjust code. Fixes sideeffects observed in tests * update devise_pam_authenticatable gem, fixes for codeconventions, fix finding user * codeconvention fixes * code convention fixes * fix idention * update dependency, explicit conflict check * fix disabled password updates if in pam mode * fix check password if password is present, fix templates * block registration if account is maintained by pam * Revert "block registration if account is maintained by pam" This reverts commit 8e7a083d650240b6fac414926744b4b90b435f20. * fix identation error introduced by rebase * block usernames maintained by pam * document pam settings better * fix code style
Showing
- Gemfile 3 additions, 0 deletionsGemfile
- Gemfile.lock 5 additions, 0 deletionsGemfile.lock
- app/controllers/application_controller.rb 5 additions, 0 deletionsapp/controllers/application_controller.rb
- app/controllers/auth/registrations_controller.rb 5 additions, 0 deletionsapp/controllers/auth/registrations_controller.rb
- app/controllers/auth/sessions_controller.rb 5 additions, 1 deletionapp/controllers/auth/sessions_controller.rb
- app/models/user.rb 69 additions, 0 deletionsapp/models/user.rb
- app/validators/unreserved_username_validator.rb 6 additions, 0 deletionsapp/validators/unreserved_username_validator.rb
- app/views/auth/passwords/edit.html.haml 11 additions, 7 deletionsapp/views/auth/passwords/edit.html.haml
- app/views/auth/registrations/edit.html.haml 9 additions, 6 deletionsapp/views/auth/registrations/edit.html.haml
- app/views/auth/sessions/new.html.haml 4 additions, 1 deletionapp/views/auth/sessions/new.html.haml
- config/initializers/devise.rb 33 additions, 1 deletionconfig/initializers/devise.rb
- config/locales/simple_form.de.yml 1 addition, 0 deletionsconfig/locales/simple_form.de.yml
- config/locales/simple_form.en.yml 1 addition, 0 deletionsconfig/locales/simple_form.en.yml
- db/migrate/20180109143959_add_remember_token_to_users.rb 5 additions, 0 deletionsdb/migrate/20180109143959_add_remember_token_to_users.rb
- db/schema.rb 2 additions, 1 deletiondb/schema.rb
Loading
Please register or sign in to comment