I want to apply password policy module functionality on custom password reset form on drupal 8.
Its not working for my reset form.
Note:
'#type' => 'password_confirm' has set to the form as below,
"#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.