feat(access): add guarded local password lifecycle and recovery
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { Link } from "react-router";
|
||||
import type { ApiSettings } from "@govoplan/core-webui";
|
||||
import { usePasswordPolicy } from "./usePasswordPolicy";
|
||||
|
||||
export default function PasswordLoginHelp({ settings, onNavigate }: { settings: ApiSettings; onNavigate: () => void }) {
|
||||
const { policy } = usePasswordPolicy(settings);
|
||||
return policy?.recovery_enabled
|
||||
? <p><Link to="/password-recovery" onClick={onNavigate} data-help-context-id="access.password.recover" data-help-module-id="access">i18n:govoplan-access.password.forgot</Link></p>
|
||||
: null;
|
||||
}
|
||||
Reference in New Issue
Block a user