aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorMichel Etienne2014-08-19 16:10:00 +0200
committerMichel Etienne2014-08-19 16:10:00 +0200
commitd23b42a833a5139733c24a53a61bab55202ee30e (patch)
tree70bb717885282f41cd2ef967a3472ed284939e7a /app/models
parent466c3b14342a8fb9eee147451542f65d140db566 (diff)
downloadchouette-core-d23b42a833a5139733c24a53a61bab55202ee30e.tar.bz2
echec invitation de nouveaux utilisateurs dans une organisation, Mantis 28034
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 1b9ec7416..ae6cceeee 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -17,6 +17,7 @@ class User < ActiveRecord::Base
before_validation(:on => :create) do
self.password ||= Devise.friendly_token.first(6)
+ self.password_confirmation ||= self.password
end
# remove organisation and referentials if last user of it