fix(login): back nav, single OTP channel, register back buttons #18

Merged
tanweer919 merged 1 commits from tanweer919/lynkeduppro-crm:feat/login-methods into goutamnextflow 2026-07-13 09:02:36 +00:00
Collaborator

Fixes: Back on the password screen returns to the email step (was leaving to /register); Shell-mode OTP screen shows a single channel (no stray SMS toggle on email sign-in); register screens get Back buttons. Phone SMS sign-in is hidden while OTP is mocked since a faked login code can't mint a session; email OTP + password + Google stay real.

Fixes: Back on the password screen returns to the email step (was leaving to /register); Shell-mode OTP screen shows a single channel (no stray SMS toggle on email sign-in); register screens get Back buttons. Phone SMS sign-in is hidden while OTP is mocked since a faked login code can't mint a session; email OTP + password + Google stay real.
tanweer919 added 1 commit 2026-07-13 09:02:34 +00:00
- Login: identify → password/otp now push() history (was replace()), so Back
  returns to the email screen instead of leaving to /register.
- Login: in Shell mode the OTP screen no longer shows an email/SMS toggle —
  the channel is fixed by how you signed in, so email sign-in never shows a
  stray SMS option.
- Login: hide phone (SMS) sign-in while OTP is mocked — a faked login code
  can't mint a session (AuthGate would bounce), so it can't work without SMS.
  Email OTP + password + Google stay real and working.
- Register: add Back buttons (email screen → sign in; profile screen → email).
- Share MOCK_OTP/DEMO_OTP via @/lib/otp.
tanweer919 merged commit 870525d6c7 into goutamnextflow 2026-07-13 09:02:36 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Goutam/lynkeduppro-crm#18