feat: enhance player login process with captcha validation and improve wallet display logic
Some checks failed
lotteryfront CI / build (push) Has been cancelled
Some checks failed
lotteryfront CI / build (push) Has been cancelled
- Added captcha validation to the player login screen, requiring users to input a captcha code for authentication. - Implemented a new API call to fetch captcha images, improving security during login. - Updated wallet display logic to ensure accurate representation of available and total balances based on player funding modes. - Enhanced documentation in AGENTS.md to clarify changes in credit flow and login requirements.
This commit is contained in:
@@ -58,8 +58,15 @@ function initialSteps(): PlayerEntryStep[] {
|
||||
];
|
||||
}
|
||||
|
||||
function readInitialBearerToken(): string | null {
|
||||
if (typeof window === "undefined") {
|
||||
return null;
|
||||
}
|
||||
return readPersistedPlayerBearerToken()?.trim() || null;
|
||||
}
|
||||
|
||||
export const usePlayerSessionStore = create<PlayerSessionState>((set, get) => ({
|
||||
bearerToken: null,
|
||||
bearerToken: readInitialBearerToken(),
|
||||
profile: null,
|
||||
currencies: [],
|
||||
selectedCurrency: null,
|
||||
|
||||
Reference in New Issue
Block a user