File_Passwd_Authbasic::addUser()

File_Passwd_Authbasic::addUser() -- Add an user

Synopsis

mixed File_Passwd_Authbasic::addUser (string $user, string $pass)

Beschreibung

The username must start with an alphabetical character and must NOT contain any other characters than alphanumerics, the underline and dash.

Parameter

string $user

username

string $pass

plaintext password

Rückgabewert

Gibt bei Erfolg TRUE zurück, bei einem Fehler ein Objekt der Klasse PEAR_Error.

Tabelle 38-1. Mögliche Fehler-Arten

Error CodeSummary
FILE_PASSWD_E_EXISTS_ALREADYthe user to add already exists
FILE_PASSWD_E_INVALID_CHARSthe username to add contains illegal characters

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.