mirror of
https://github.com/friendica/friendica
synced 2025-04-27 06:30:12 +00:00
Move mod/friendica to src/Module/Friendica
This commit is contained in:
parent
41401bb18d
commit
6f787f2422
5 changed files with 224 additions and 142 deletions
|
@ -129,6 +129,21 @@ class User
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a user based on it's email
|
||||
*
|
||||
* @param string $email
|
||||
* @param array $fields
|
||||
*
|
||||
* @return array|boolean User record if it exists, false otherwise
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public static function getByEmail($email, array $fields = [])
|
||||
{
|
||||
return DBA::selectFirst('user', $fields, ['email' => $email]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get owner data by user id
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue