Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

[SOLVED][blogs.perl.org credential release] How can I check the password that I used on blogs.perl.org

by three18ti (Monk)
on Jan 23, 2014 at 11:36 UTC ( [id://1071729]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    MT::Author
    
    ...
    I<set_password>). This check is done by one-way encrypting I<$check_pa
    +ss>,
    using the same salt used to encrypt the original password, then compar
    +ing the
    two encrypted strings for equality.
    
  2. or download this
    MT::Auth
    
    ...
    is a reference to a scalar variable for storing any error message to
    be returned to the application. The routine itself should return 1 for
    a valid password, 0 or undef for an invalid one.
    
  3. or download this
    sub set_password {
        my $auth = shift;
    ...
        # FIXME: use something besides 'crypt'
        $auth->column('password', crypt $pass, $salt);
    }
    
  4. or download this
    sub is_valid_password {
        my $author = shift;
    ...
        require MT::Auth;
        return MT::Auth->is_valid_password($author, $pass, $crypted, $erro
    +r_ref);
    }
    
  5. or download this
    BEGIN {
        my @methods = qw(
    ...
            *{"MT::Auth::$meth"} = sub { shift; _handle($meth, @_) };
        }
    }
    
  6. or download this
    {
    my $auth_module;
    ...
        undef $auth_module;
    }
    }
    
  7. or download this
    sub is_valid_password {
        my $auth = shift;
    ...
        return $crypted ? $real_pass eq $pass :
                          crypt($pass, $real_pass) eq $real_pass;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1071729]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found