Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix compilation errors
  • Loading branch information
jpraet committed Apr 2, 2022
commit 4172f3f74b5f8f1dc5a7720a6e269d55b283e4e2
3 changes: 2 additions & 1 deletion routers/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,8 @@ func SubmitInstall(ctx *context.Context) {
IsAdmin: true,
}
overwriteDefault := &user_model.CreateUserOverwriteOptions{
IsActive: new(bool),
IsRestricted: util.OptionalBoolFalse,
IsActive: util.OptionalBoolTrue,
}

if err = user_model.CreateUser(u, overwriteDefault); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion routers/web/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ func SignUpPost(ctx *context.Context) {
Passwd: form.Password,
}

if !createAndHandleCreatedUser(ctx, tplSignUp, form, u, nil, false) {
if !createAndHandleCreatedUser(ctx, tplSignUp, form, u, nil, nil, false) {
// error already handled
return
}
Expand Down
2 changes: 1 addition & 1 deletion routers/web/auth/linkaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func LinkAccountPostRegister(ctx *context.Context) {
LoginName: gothUser.UserID,
}

if !createAndHandleCreatedUser(ctx, tplLinkAccount, form, u, &gothUser, false) {
if !createAndHandleCreatedUser(ctx, tplLinkAccount, form, u, nil, &gothUser, false) {
// error already handled
return
}
Expand Down