thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

md5sum in YumUser::generteActivationKey() #197

Open abos5 opened 9 years ago

abos5 commented 9 years ago

there is an error when I try to register a new account

public function generateActivationKey($activate = false) {
  ...
  $this->activationKey = md5sum(microtime() . $this->password, Yum::module()->passwordHashCost);
    if(!$this->isNewRecord)
        $this->save(false, array('activationKey'));
  ...
    return $this->activationKey;
}

Can I just change md5sum to md5?

d3artagnan commented 9 years ago

Call to undefined function md5sum(),

md5sum() is custom function? forgot to add the function in the published file?