如何在 drupal 8 中的自定义表单上应用密码策略验证?

问题描述

我想在 drupal 8 上的自定义密码重置表单上应用密码策略模块功能。 它不适用于我的重置表单。 笔记: '#type' => 'password_confirm' 已设置为如下形式,

    "#type" => "password_confirm"
    "#size" => 25
    "#description" => Drupal\Core\StringTranslation\TranslatableMarkup {#1612 ▶}
    "#attributes" => array:1 [▶]
  ]```
still its not working.
And,one point I noticed,Custom form act as Anonymous user.

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)