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