╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ User.zig ─────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
99 const event_id_to_user = try DB.HashMap(.read_only).init(event_id_to_user_cursor); 100 101 const user_cursor = try event_id_to_user.getCursor(user_key) orelse return .unknown_user; 102 const user_map = try DB.HashMap(.read_only).init(user_cursor); 103 const user_event = try evt.read(@This(), DB, hash_kind, arena, user_map); 104 105 bcrypt.strVerify(user_event.password_hash, password, .{ .silently_truncate_password = false }) catch { 106 return .wrong_password; 107 }; 108 109 return .{ .success = user_id }; 110 } 111