mirror of
https://github.com/friendica/friendica
synced 2025-04-28 03:10:11 +00:00
Fix formatting and add documentation
- mod/register - mod/regmod - Model/User - Worker/CronJobs
This commit is contained in:
parent
f41c891a6b
commit
4395c20679
4 changed files with 63 additions and 51 deletions
|
@ -20,6 +20,19 @@ require_once 'include/plugin.php';
|
|||
*/
|
||||
class User
|
||||
{
|
||||
/**
|
||||
* @brief Authenticate a user with a clear text password
|
||||
*
|
||||
* User info can be any of the following:
|
||||
* - User DB object
|
||||
* - User Id
|
||||
* - User email or username or nickname
|
||||
* - User array with at least the uid and the hashed password
|
||||
*
|
||||
* @param mixed $user_info
|
||||
* @param string $password
|
||||
* @return boolean
|
||||
*/
|
||||
public static function authenticate($user_info, $password)
|
||||
{
|
||||
if (is_object($user_info)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue