Auth::addUser()

Auth::addUser() – add a new user

Synopsis

mixed Auth::addUser ( string $username , string $password , mixed $additional = '' )

Description

Add a new user to the Auth Container.

Parameter

string $username

the username of the new user

string $password

the password of the new user

mixed $additional = ''

additional options to be passed to the creation of the new user. Each Auth_Container has different options for these, please see the containers documentation for what is supported.

Return value

mixed - TRUE on success, a PEAR Error on failure.

Note

This function can not be called statically.

Not all Auth Containers implement this functionality.

constructor (Previous) Attach a log observer instance to the internal Log object (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

Note by: Mehmet Fatih YILDIZ
there is no updateUser function.
i think it must be.

i'm using addUser in my registration page. But i need write a update sql to update user information.