Move mod/friendica to src/Module/Friendica

This commit is contained in:
Philipp Holzer 2019-05-04 10:05:21 +02:00
parent 41401bb18d
commit 6f787f2422
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5
5 changed files with 224 additions and 142 deletions

View file

@ -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
*