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:
parent
1f8710eea1
commit
4172f3f74b
3 changed files with 4 additions and 3 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue