Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Resolved Cannot Login or Change Password
#11
Thanks, i appreciate that you caught that...
Reply
#12
Hi Nicholas,
after an hour spent in doing some tests we have found the problem, this is caused by a mixed factors your system encription feature, php suhosin combined with our hashing password feature in MyT.

i've changed some file on your host, but if you want do a fresh install here is the fix to apply to default package:

open file: /protected/models/User.php

find:
PHP Code:
   public function beforeSave() {
 
       if (!empty($this->password)) {
 
           $this->password crypt($this->password);
 
       } else {
 
           unset($this->password);
 
       }
 
       $this->notifications serialize($this->notifications);

 
       return parent::beforeSave();
 
   

replace with:


PHP Code:
   public function beforeSave() {
 
       if (!empty($this->password)) {
 
           $this->password CPasswordHelper::hashPassword($this->password);
 
       } else {
 
           unset($this->password);
 
       }
 
       $this->notifications serialize($this->notifications);

 
       return parent::beforeSave();
 
   

now you can login with supplied username and password.

Let us know if more is needed
Reply
#13
WOW, looks totally awesome!
Reply
#14
let me do some testing and then i will do a fresh install, thanks again!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)