Skip to content
Snippets Groups Projects
Unverified Commit 51f5ce90 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #654 from noesya/feature/skip-reconfirmation-from-admin

Eviter la reconfirmation quand on change l'email d'un utilisateur depuis le BO
parents 57814412 35241e79
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ class Admin::UsersController < Admin::ApplicationController
def update
@user.modified_by = current_user
@user.skip_reconfirmation!
manage_password
if @user.update(user_params)
redirect_to [:admin, @user], notice: t('admin.successfully_updated_html', model: @user.to_s)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment