Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

md5sum in YumUser::generteActivationKey() #197

Open
abos5 opened this issue Oct 8, 2014 · 1 comment
Open

md5sum in YumUser::generteActivationKey() #197

abos5 opened this issue Oct 8, 2014 · 1 comment

Comments

@abos5
Copy link

abos5 commented Oct 8, 2014

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
Copy link

Call to undefined function md5sum(),

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants