chore: upgrade info
This commit is contained in:
@@ -88,7 +88,7 @@ const useStyles = createStyles(({ token, css }) => ({
|
||||
const LoginForm = () => {
|
||||
const [messageApi, contextHolder] = message.useMessage();
|
||||
const { styles } = useStyles();
|
||||
const [userInfo, setUserInfo] = useAtom(userAtom);
|
||||
const [, setUserInfo] = useAtom(userAtom);
|
||||
const { initialState, setInitialState } = useModel('@@initialState') || {};
|
||||
const [authError, setAuthError] = useState<Error | null>(null);
|
||||
const intl = useIntl();
|
||||
|
||||
@@ -34,7 +34,7 @@ const PasswordForm: React.FC = () => {
|
||||
});
|
||||
|
||||
await setUserInfo({
|
||||
...userInfo,
|
||||
...(userInfo || {}),
|
||||
require_password_change: false
|
||||
});
|
||||
setInitialPassword('');
|
||||
|
||||
Reference in New Issue
Block a user