| | |
| | | const notify = useNotify(); |
| | | const login = useLogin(); |
| | | const location = useLocation(); |
| | | const { tenantList } = props; |
| | | const { systemInfo, tenantList } = props; |
| | | |
| | | const { control, handleSubmit, watch, setValue, getValues } = useForm(); |
| | | |
| | |
| | | render={({ field }) => ( |
| | | <TextField |
| | | {...field} |
| | | label={translate('ra.auth.username')} |
| | | label={translate("page.login.username")} |
| | | variant="standard" |
| | | disabled={loading} |
| | | autoFocus |
| | |
| | | render={({ field }) => ( |
| | | <TextField |
| | | {...field} |
| | | label={translate('ra.auth.password')} |
| | | label={translate("page.login.password")} |
| | | type={showPassword ? 'text' : 'password'} |
| | | variant="standard" |
| | | disabled={loading} |
| | |
| | | variant="contained" |
| | | disabled={loading || !(tenantId && username && password)} |
| | | sx={{ |
| | | backgroundColor: "#3D4BA7" |
| | | // backgroundColor: "#3D4BA7" |
| | | }} |
| | | > |
| | | {loading && <CircularProgress size={25} thickness={2} />} |