diff --git a/src/atoms/user.ts b/src/atoms/user.ts index 73da1543..027d07d1 100644 --- a/src/atoms/user.ts +++ b/src/atoms/user.ts @@ -32,10 +32,7 @@ export const UpdateCheckAtom = atom<{ latest_version: '' }); -export const initialPasswordAtom = atomWithStorage( - 'initialPassword', - '' -); +export const initialPasswordAtom = atom(''); // Namespace the server creates for an Org's resources on each Kubernetes // cluster. The format must match the backend's ``get_namespace_name`` diff --git a/src/pages/login/components/local-user-form.tsx b/src/pages/login/components/local-user-form.tsx index adba819d..071a6432 100644 --- a/src/pages/login/components/local-user-form.tsx +++ b/src/pages/login/components/local-user-form.tsx @@ -6,7 +6,7 @@ import { } from '@ant-design/icons'; import { Input as CInput, HighlightCode, IconFont } from '@gpustack/core-ui'; import { useIntl } from '@umijs/max'; -import { Button, Checkbox, Divider, Form, FormInstance } from 'antd'; +import { Button, Divider, Form, FormInstance } from 'antd'; import { createStyles } from 'antd-style'; const useStyles = createStyles(({ token, css }) => { @@ -122,18 +122,12 @@ const LocalUserForm: React.FC = (props) => { />
- - - - {intl.formatMessage({ id: 'common.login.rember' })} - - -