0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

passwordのバリデーション

Last updated at Posted at 2025-02-22

confirmed

これ何?

    public function validateConfirmed($attribute, $value)
    {
        return $this->validateSame($attribute, $value, [$attribute.'_confirmation']);
    }

        public function validateSame($attribute, $value, $parameters)
    {
        $this->requireParameterCount(1, $parameters, 'same');

        $other = Arr::get($this->data, $parameters[0]);

        return $value === $other;
    }

passwordpassword_confirmation===で比較する感じのやつでした。

uncompromised()

これ何?

さらに、次のuncompromised方法を使用すると、公開パスワード データ侵害漏洩でパスワードが侵害されていないことを確認できます。
haveibeenpwned.comサービスを介してパスワードが漏洩したかどうかを判断します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?