0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-11 20:41:34 +01:00

Fix compilation errors

This commit is contained in:
Jimmy Praet 2022-04-02 12:32:30 +02:00
parent 1f8710eea1
commit 4172f3f74b
3 changed files with 4 additions and 3 deletions

View file

@ -505,7 +505,8 @@ func SubmitInstall(ctx *context.Context) {
IsAdmin: true, IsAdmin: true,
} }
overwriteDefault := &user_model.CreateUserOverwriteOptions{ overwriteDefault := &user_model.CreateUserOverwriteOptions{
IsActive: new(bool), IsRestricted: util.OptionalBoolFalse,
IsActive: util.OptionalBoolTrue,
} }
if err = user_model.CreateUser(u, overwriteDefault); err != nil { if err = user_model.CreateUser(u, overwriteDefault); err != nil {

View file

@ -512,7 +512,7 @@ func SignUpPost(ctx *context.Context) {
Passwd: form.Password, Passwd: form.Password,
} }
if !createAndHandleCreatedUser(ctx, tplSignUp, form, u, nil, false) { if !createAndHandleCreatedUser(ctx, tplSignUp, form, u, nil, nil, false) {
// error already handled // error already handled
return return
} }

View file

@ -288,7 +288,7 @@ func LinkAccountPostRegister(ctx *context.Context) {
LoginName: gothUser.UserID, LoginName: gothUser.UserID,
} }
if !createAndHandleCreatedUser(ctx, tplLinkAccount, form, u, &gothUser, false) { if !createAndHandleCreatedUser(ctx, tplLinkAccount, form, u, nil, &gothUser, false) {
// error already handled // error already handled
return return
} }