diff options
author | Daniel Juarez <daniel.juarez.gonzalez@cern.ch> | 2017-11-21 15:47:58 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-11-21 15:47:58 +0000 |
commit | 0b9e1e16626eff4cd8ae43ce47ec0f965beaf843 (patch) | |
tree | 4171348087b509348c59bb7d35f55fe6f5972f81 /app/models | |
parent | 28a5f5f2e91297a56369c39e96be25187ad0a1dd (diff) | |
download | gitlab-ce-0b9e1e16626eff4cd8ae43ce47ec0f965beaf843.tar.gz |
Skip confirmation user api
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/user.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 0329d094d09..f98165754ca 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -445,6 +445,10 @@ class User < ActiveRecord::Base skip_confirmation! if bool end + def skip_reconfirmation=(bool) + skip_reconfirmation! if bool + end + def generate_reset_token @reset_token, enc = Devise.token_generator.generate(self.class, :reset_password_token) |