Encryption of Password ApAuthLocalUser

Asked by Dominik Wieser

Hello,

I want to add users without having to login to the administration panel.

i thought the easiest thing would be to add them directly in the database. i couldn find the part in the code where the password gets encrypted. can anybody tell me the algorithmus for encrypting or refer to the right codefile?

regard dominik

Question information

Language:
English Edit question
Status:
Answered
For:
AuthPuppy Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
gbastien (gbastien02) said :
#1

See file apAuthLocalUserPlugin/lib/model/doctrine/pluginapUser

protected function hashPassword($password) {
     return base64_encode(pack("H*", md5(utf8_decode($password))));
}

Can you help with this problem?

Provide an answer of your own, or ask Dominik Wieser for more information if necessary.

To post a message you must log in.