[Fix #2042] Pre-validate users for administrateurs
Rather kludgy but better than the double-validation that is required now
This commit is contained in:
parent
c3254eddae
commit
74135b193a
1 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,8 @@ class Administration < ApplicationRecord
|
||||||
administrateur.invite!(id)
|
administrateur.invite!(id)
|
||||||
User.create({
|
User.create({
|
||||||
email: email,
|
email: email,
|
||||||
password: password
|
password: password,
|
||||||
|
confirmed_at: DateTime.now
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue