mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-05 21:20:07 +00:00
feat: refresh token
This commit is contained in:
@@ -66,7 +66,7 @@ export default () => {
|
||||
<FormItem>
|
||||
<FormLabel>Password</FormLabel>
|
||||
<FormControl>
|
||||
<Input placeholder="shadcn" {...field} />
|
||||
<Input type="password" placeholder="shadcn" {...field} />
|
||||
</FormControl>
|
||||
<FormDescription>
|
||||
This is your public display name.
|
||||
@@ -75,7 +75,7 @@ export default () => {
|
||||
</FormItem>
|
||||
)}
|
||||
/>
|
||||
<Button type="submit">Submit</Button>
|
||||
<Button type="submit">Login</Button>
|
||||
</form>
|
||||
</Form>
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@ export const ProtectedRoute = ({ children }: {
|
||||
const { profile } = useAuth();
|
||||
|
||||
if (!profile && window.location.pathname !== "/dashboard/login") {
|
||||
return <Navigate to="/dashboard/login" />;
|
||||
return <><Navigate to="/dashboard/login" />{children}</>;
|
||||
}
|
||||
|
||||
return children;
|
||||
|
||||
Reference in New Issue
Block a user