summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDaniel Juarez <daniel.juarez.gonzalez@cern.ch>2017-11-21 15:47:58 +0000
committerRémy Coutable <remy@rymai.me>2017-11-21 15:47:58 +0000
commit0b9e1e16626eff4cd8ae43ce47ec0f965beaf843 (patch)
tree4171348087b509348c59bb7d35f55fe6f5972f81 /app
parent28a5f5f2e91297a56369c39e96be25187ad0a1dd (diff)
downloadgitlab-ce-0b9e1e16626eff4cd8ae43ce47ec0f965beaf843.tar.gz
Skip confirmation user api
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb4
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)