mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-11-29 11:50:22 +01:00
Refuse to update manually created users
This commit is contained in:
parent
27b3a89247
commit
f3c67f1d71
5 changed files with 50 additions and 13 deletions
|
|
@ -95,8 +95,8 @@ type Config struct {
|
|||
AuthFile string
|
||||
AuthStartupQueries string
|
||||
AuthDefault user.Permission
|
||||
AuthProvisionedUsers []*user.User
|
||||
AuthProvisionedAccess map[string][]*user.Grant
|
||||
AuthProvisionUsers []*user.User
|
||||
AuthProvisionAccess map[string][]*user.Grant
|
||||
AuthBcryptCost int
|
||||
AuthStatsQueueWriterInterval time.Duration
|
||||
AttachmentCacheDir string
|
||||
|
|
|
|||
|
|
@ -201,8 +201,8 @@ func New(conf *Config) (*Server, error) {
|
|||
StartupQueries: conf.AuthStartupQueries,
|
||||
DefaultAccess: conf.AuthDefault,
|
||||
ProvisionEnabled: true, // Enable provisioning of users and access
|
||||
ProvisionUsers: conf.AuthProvisionedUsers,
|
||||
ProvisionAccess: conf.AuthProvisionedAccess,
|
||||
ProvisionUsers: conf.AuthProvisionUsers,
|
||||
ProvisionAccess: conf.AuthProvisionAccess,
|
||||
BcryptCost: conf.AuthBcryptCost,
|
||||
QueueWriterInterval: conf.AuthStatsQueueWriterInterval,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue