landed display of system audit logs

This commit is contained in:
2026-02-21 22:58:57 -07:00
parent 6e06c7a3a8
commit f9978918d8
7 changed files with 220 additions and 55 deletions
-11
View File
@@ -561,17 +561,6 @@ func AmGetAnonUser(ctx context.Context) (*User, error) {
return rc, err
}
// AmGetBOFH returns the user account of the global system administrator.
func AmGetBOFH(ctx context.Context) (*User, error) {
row := amdb.QueryRowContext(ctx, "SELECT uid FROM users WHERE base_lvl = ?", AmRole("Global.BOFH").Level())
var uid int32
err := row.Scan(&uid)
if err != nil {
return nil, err
}
return AmGetUser(ctx, uid)
}
// hashPassword hashes the password value.
func hashPassword(password string) string {
if len(password) == 0 {