Rev 1090 | Rev 1116 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1090 | Rev 1099 | ||
---|---|---|---|
Line 83... | Line 83... | ||
83 | } else { |
83 | } else { |
84 | return defined('PASSWORD_ARGON2ID'); |
84 | return defined('PASSWORD_ARGON2ID'); |
85 | } |
85 | } |
86 | } |
86 | } |
87 | 87 | ||
88 | public function available(&$reason): bool { |
88 | public function availableForHash(&$reason): bool { |
89 | if (!$this->supportsArgon2i() && !$this->supportsArgon2id()) { |
89 | if (!$this->supportsArgon2i() && !$this->supportsArgon2id()) { |
90 | $reason = _L('No fitting hash algorithm found'); |
90 | $reason = _L('No fitting hash algorithm found'); |
91 | return false; |
91 | return false; |
92 | } else { |
92 | } else { |
93 | return true; |
93 | return true; |
94 | } |
94 | } |
95 | } |
95 | } |
96 | 96 | ||
- | 97 | public function availableForVerify(&$reason): bool { |
|
- | 98 | return $this->availableForHash($reason); |
|
- | 99 | } |
|
- | 100 | ||
97 | } |
101 | } |