Skip to content

Commit

Permalink
使用明文密码
Browse files Browse the repository at this point in the history
  • Loading branch information
shynome committed Jul 12, 2022
1 parent a5b20ec commit 60557a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func updateConfig(cfg *Config, updatedCfg *Config) {
}
}
for username, v := range updatedCfg.Users {
v.Password = GenHash([]byte(v.Password))
if cfg.Users[username] == nil {
log.WithField("user", username).Info("Added User to configuration")
cfg.Users[username] = v
Expand Down

0 comments on commit 60557a0

Please sign in to comment.