MediaWiki  master
InvalidPassword.php
Go to the documentation of this file.
1 <?php
23 declare( strict_types = 1 );
24 
34 class InvalidPassword extends Password {
35  public function crypt( string $plaintext ) : void {
36  }
37 
38  public function toString() : string {
39  return '';
40  }
41 
42  public function verify( string $password ) : bool {
43  return false;
44  }
45 
46  public function needsUpdate() : bool {
47  return false;
48  }
49 }
InvalidPassword
Represents an invalid password hash.
Definition: InvalidPassword.php:34
InvalidPassword\crypt
crypt(string $plaintext)
Hash a password and store the result in this object.
Definition: InvalidPassword.php:35
InvalidPassword\verify
verify(string $password)
Checks whether the given password matches the hash stored in this object.
Definition: InvalidPassword.php:42
InvalidPassword\needsUpdate
needsUpdate()
Determine if the hash needs to be updated.
Definition: InvalidPassword.php:46
Password
Represents a password hash for use in authentication.
Definition: Password.php:61
InvalidPassword\toString
toString()
Convert this hash to a string that can be stored in the database.
Definition: InvalidPassword.php:38