Jump to:

22977 Posts in 11742 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » PasswordEncrypter.php Error

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 305 Views
  • Leon95
    Avatar
    Community Member
    3 Posts

    PasswordEncrypter.php Error Link to this post

    Hello,
    I'm searching and reading for a while, but it seems there is no solution for my problem.
    I'm running SilverStripe on Microsoft Webmatrix and I had to change my admin password through the database.
    After that an error appears:

    [User Error] Uncaught PasswordEncryptor_NotFoundException: No implementation found for ""
    POST /Security/LoginForm
    Line 59 in C:\Documents\My Web Sites\Security FAQ\framework\security\PasswordEncryptor.php
    Source

    50    
    51    /**
    52     * @param String $algorithm
    53     * @return PasswordEncryptor
    54     * @throws PasswordEncryptor_NotFoundException
    55     */
    56    public static function create_for_algorithm($algorithm) {
    57       $encryptors = self::get_encryptors();
    58       if(!isset($encryptors[$algorithm])) {
    59          throw new PasswordEncryptor_NotFoundException(
    60             sprintf('No implementation found for "%s"', $algorithm)
    61          );
    62       }
    63       
    64       $class=key($encryptors[$algorithm]);
    65       if(!class_exists($class)) {


    Trace
    PasswordEncryptor::create_for_algorithm()
    Member.php:194
    Member->checkPassword(<filtered>)
    MemberAuthenticator.php:52
    MemberAuthenticator::authenticate(Array,MemberLoginForm)
    call_user_func_array(Array,Array)
    MemberLoginForm.php:237
    MemberLoginForm->performLogin(Array)
    MemberLoginForm.php:128
    MemberLoginForm->dologin(Array,MemberLoginForm,SS_HTTPRequest)
    Form.php:363
    Form->httpSubmission(SS_HTTPRequest)
    RequestHandler.php:184
    RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
    RequestHandler.php:204
    RequestHandler->handleRequest(SS_HTTPRequest,DataModel)
    Controller.php:153
    Controller->handleRequest(SS_HTTPRequest,DataModel)
    Director.php:307
    Director::handleRequest(SS_HTTPRequest,Session,DataModel)
    Director.php:119
    Director::direct(Security/LoginForm,DataModel)
    main.php:126

    I hope you can help me and sorry for my bad English btw, I'm from Germany.

    Greetings,
    Leon.

  • Devlin
    Avatar
    Community Member
    186 Posts

    Re: PasswordEncrypter.php Error Link to this post

    I had to change my admin password through the database.

    Uhm, you do understand why this is a futile attempt?

    To get you back in the CMS, add this to mysite/_config.php:

    Security::setDefaultAdmin('123', '234');

    Then go to 'mysite.com/admin', login with 123/234 and then give your administrative user a new password inside the CMS. After that you should remove the line from your config.

  • Leon95
    Avatar
    Community Member
    3 Posts

    Re: PasswordEncrypter.php Error Link to this post

    Okay, I see... SilverStripe is really different from the CMS I use usually.

    I now tried to add Security::setDefaultAdmin('123', '234'); to my _config.php but I'm getting the same error still.

  • Devlin
    Avatar
    Community Member
    186 Posts

    Re: PasswordEncrypter.php Error Link to this post

    Did you tried to log-in with username: '123' and password: '234'?

  • Leon95
    Avatar
    Community Member
    3 Posts

    Re: PasswordEncrypter.php Error Link to this post

    Of course, I understand the method, but now SilverStripe says:
    "That doesn't seem to be the right e-mail address or password. Please try again."

    305 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.