Added an option to specify demo user, will be created on startup if it does not exist
This commit is contained in:
@@ -11,5 +11,6 @@ func GetAppInfo(ac appcontext.AppContext) {
|
||||
ac.C.JSON(http.StatusOK, dto.AppInfo{
|
||||
RegistrationDisabled: ac.Config.DisableRegistration,
|
||||
DemoMode: ac.Config.DemoMode,
|
||||
DemoUsername: ac.Config.DemoUsername,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ func PostLoginHandler(ac appcontext.AppContext) {
|
||||
}
|
||||
username = user.Username
|
||||
} else {
|
||||
username = "demo"
|
||||
username = ac.Config.DemoUsername
|
||||
}
|
||||
|
||||
var jwtToken string
|
||||
|
||||
Reference in New Issue
Block a user