[Fix #2042] Pre-validate users for administrateurs

Rather kludgy but better than the double-validation that is required now
This commit is contained in:
Frederic Merizen 2018-06-06 16:35:22 +02:00
parent c3254eddae
commit 74135b193a

View file

@ -21,7 +21,8 @@ class Administration < ApplicationRecord
administrateur.invite!(id)
User.create({
email: email,
password: password
password: password,
confirmed_at: DateTime.now
})
end