╭─────────────╮ │scroll to top│ ╰─────────────╯ ╭ Login.zig ────────────────────────────────────────────────────╮ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ╰───────────────────────────────────────────────────────────────╯
╭────╮ ╭ clone ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╮ │http│ ssh │ │ ╰────╯ ╰ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ╯
250 self.session.data.user_id = user_id_stable; 251 self.session.data.login_failure = null; 252 253 // wipe the entered credentials so they don't linger if the 254 // user returns to this page after logging out. 255 username_input.clear(allocator); 256 password_input.clear(allocator); 257 258 // jump focus back to the users tab — the login button we 259 // just pressed is about to be hidden by the tab-label swap. 260 try root_focus.setFocus(self.users_tab_id); 261 }, 262 } 263 } 264 }; 265