fix(LoginRegisterForm): add username autocomplete

This commit is contained in:
2026-06-27 17:59:12 +03:30
parent 649337d01c
commit 53d3e8c298

View File

@@ -76,7 +76,9 @@ export function LoginRegisterForm({
setLoginRegisterValue(newValue);
const strippedValue = newValue.startsWith('+') ? newValue.substring(1) : newValue;
const strippedValue = newValue.startsWith('+')
? newValue.substring(1)
: newValue;
if (isNumeric(strippedValue) && strippedValue.length > 0) {
setAuthType('phone');
} else {
@@ -147,7 +149,7 @@ export function LoginRegisterForm({
newValue,
res.userStatus,
res.totalSecondForOtpToExpire,
authType
authType,
);
} else {
toast({ message: res.message, severity: 'error' });
@@ -191,7 +193,12 @@ export function LoginRegisterForm({
helperText={inputError && t(error || '')}
autoFocus
slotProps={{
htmlInput: { dir: 'auto', sx: { lineHeight: 1.5 } },
htmlInput: {
dir: 'auto',
sx: { lineHeight: 1.5 },
name: 'username',
autoComplete: 'username',
},
input: {
endAdornment: i18n.dir() === 'rtl' && (
<CountryCodeSelector