def METHOD_NAME() -> ReturnView:
    """Check if a password meets policy criteria (strength, embedded personal info)."""
    form = PasswordPolicyForm(edit_user=current_auth.user)
    form.form_nonce.data = form.form_nonce.default()
    if form.validate_on_submit():
        return {
            'status': 'ok',
            'result': {
                # zxcvbn scores are 0-4, frond-end expects strength value from 0.0-1.0.
                # Keeping the backend score to backend will let us switch strength
                # calculations later on.
                'strength': float(cast(int, form.password_strength)) / 4.0,
                'is_weak': form.is_weak,
                'strength_verbose': (
                    _("Weak password") if form.is_weak else _("Strong password")
                ),
                'warning': form.warning,
                'suggestions': form.suggestions,
            },
        }
    return {
        'status': 'error',
        'error': 'password_policy_error',
        'error_description': _("Something went wrong. Please reload and try again"),
        'error_details': form.errors,
    }, 422