mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-21 08:57:48 +02:00
force oauth created users to start with user role
This commit is contained in:
@@ -106,6 +106,7 @@ func (h *Hub) StartHub() error {
|
||||
|
||||
// TODO: move to users package
|
||||
// handle default values for user / user_settings creation
|
||||
h.App.OnRecordAuthWithOAuth2Request("users").BindFunc(h.um.InitializeOAuthUserRole)
|
||||
h.App.OnRecordCreate("users").BindFunc(h.um.InitializeUserRole)
|
||||
h.App.OnRecordCreate("user_settings").BindFunc(h.um.InitializeUserSettings)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user