MediaWiki  1.34.0
InvalidPassword.php
Go to the documentation of this file.
1 <?php
32 class InvalidPassword extends Password {
33  public function crypt( $plaintext ) {
34  }
35 
36  public function toString() {
37  return '';
38  }
39 
40  public function equals( $other ) {
41  wfDeprecated( __METHOD__, '1.33' );
42 
43  return false;
44  }
45 
46  public function verify( $password ) {
47  return false;
48  }
49 
50  public function needsUpdate() {
51  return false;
52  }
53 }
InvalidPassword\equals
equals( $other)
Compare one Password object to this object.
Definition: InvalidPassword.php:40
InvalidPassword
Represents an invalid password hash.
Definition: InvalidPassword.php:32
wfDeprecated
wfDeprecated( $function, $version=false, $component=false, $callerOffset=2)
Throws a warning that $function is deprecated.
Definition: GlobalFunctions.php:1044
InvalidPassword\crypt
crypt( $plaintext)
Hash a password and store the result in this object.
Definition: InvalidPassword.php:33
InvalidPassword\needsUpdate
needsUpdate()
Determine if the hash needs to be updated.
Definition: InvalidPassword.php:50
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:36
InvalidPassword\verify
verify( $password)
Checks whether the given password matches the hash stored in this object.
Definition: InvalidPassword.php:46