fix(LoginRegisterForm): add username autocomplete
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user