diff options
| author | Michel Etienne | 2014-08-19 16:10:00 +0200 |
|---|---|---|
| committer | Michel Etienne | 2014-08-19 16:10:00 +0200 |
| commit | d23b42a833a5139733c24a53a61bab55202ee30e (patch) | |
| tree | 70bb717885282f41cd2ef967a3472ed284939e7a | |
| parent | 466c3b14342a8fb9eee147451542f65d140db566 (diff) | |
| download | chouette-core-d23b42a833a5139733c24a53a61bab55202ee30e.tar.bz2 | |
echec invitation de nouveaux utilisateurs dans une organisation, Mantis 28034
| -rw-r--r-- | app/models/user.rb | 1 |
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 |
