A class representing an User
This file is part of the project codename "AMANUENSIS"
- Author
- Sebastian Antosch s.ant.nosp@m.osch.nosp@m.@i-sa.nosp@m.n.de
- Copyright
- 2015 I-SAN.de Webdesign & Hosting GbR GPL
| __construct |
( |
|
$email, |
|
|
|
$username, |
|
|
|
$password, |
|
|
|
$accessgroup, |
|
|
|
$savetodb = true |
|
) |
| |
Creates a new User and saves it to the Datastore
- Parameters
-
| string | $email | |
| string | $username | |
| string | $password | - completely hashed if already existent user or only once hashed with sha256 without salt! |
| int | $accessgroup | |
| boolean | $savetodb | - set to false if user already exists |
Returns the User with the given email address or NULL if none found
- Parameters
-
| string | $email | - the email address of the wanted user |
- Returns
- User|NULL
Sets the email address
- Parameters
-
Sets the email address
- Parameters
-
| setAccessgroup |
( |
|
$accessgroup | ) |
|
Sets the access group
- Parameters
-
Sets the password
- Parameters
-
| String | $password | - the one time hashed password |
| setLastFailedLoginAttempt |
( |
| ) |
|
Sets the last failed login attempt to now
Notifies a new user by email
| static userdataByMail |
( |
|
$email | ) |
|
|
staticprivate |
Gets an PDOStatement result with user data to a given Mail
- Parameters
-
- Returns
- mixed - the first result for the user
The documentation for this class was generated from the following file:
- D:/Arbeit/PhpStormProjects/amanuensis/app/classes/authentication/user.php