Make debug created users verified by default
This commit is contained in:
parent
12c9e17c4b
commit
6df7a354f0
1 changed files with 14 additions and 10 deletions
|
@ -139,6 +139,8 @@ func createLocalUser(w http.ResponseWriter, r *http.Request) {
|
||||||
u.PrivateKeyRsa,
|
u.PrivateKeyRsa,
|
||||||
u.PublicKeyRsa,
|
u.PublicKeyRsa,
|
||||||
u.PasskeyId,
|
u.PasskeyId,
|
||||||
|
u.Verified,
|
||||||
|
u.FinishedRegistration,
|
||||||
)
|
)
|
||||||
if data.Birthday != nil {
|
if data.Birthday != nil {
|
||||||
query = query.Select(u.Birthday)
|
query = query.Select(u.Birthday)
|
||||||
|
@ -157,6 +159,8 @@ func createLocalUser(w http.ResponseWriter, r *http.Request) {
|
||||||
PrivateKeyRsa: privateKeyRsaBytes,
|
PrivateKeyRsa: privateKeyRsaBytes,
|
||||||
PrivateKeyEd: privateKeyEdBytes,
|
PrivateKeyEd: privateKeyEdBytes,
|
||||||
PasskeyId: pkeyId,
|
PasskeyId: pkeyId,
|
||||||
|
Verified: true,
|
||||||
|
FinishedRegistration: true,
|
||||||
}
|
}
|
||||||
if data.Birthday != nil {
|
if data.Birthday != nil {
|
||||||
user.Birthday = sql.NullString{Valid: true, String: data.Birthday.Format("2006-Jan-02")}
|
user.Birthday = sql.NullString{Valid: true, String: data.Birthday.Format("2006-Jan-02")}
|
||||||
|
|
Loading…
Reference in a new issue