mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add default access control on users.
This commit is contained in:
parent
c714d17d87
commit
a2da60d617
@ -75,6 +75,11 @@ func (manager *SessionManagerCtx) Connect() error {
|
||||
Secret: manager.config.AdminPassword,
|
||||
Name: "Administrator",
|
||||
IsAdmin: true,
|
||||
CanLogin: true,
|
||||
CanConnect: true,
|
||||
CanWatch: true,
|
||||
CanHost: true,
|
||||
CanAccessClipboard: true,
|
||||
})
|
||||
|
||||
// create default user account at startup
|
||||
@ -82,6 +87,11 @@ func (manager *SessionManagerCtx) Connect() error {
|
||||
Secret: manager.config.Password,
|
||||
Name: "User",
|
||||
IsAdmin: false,
|
||||
CanLogin: true,
|
||||
CanConnect: true,
|
||||
CanWatch: true,
|
||||
CanHost: true,
|
||||
CanAccessClipboard: true,
|
||||
})
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user