Merge pull request #7083 from nupplaphil/task/mod_friendica

Move mod/friendica to src/Module/Friendica
This commit is contained in:
Hypolite Petovan 2019-05-05 14:19:57 -04:00 committed by GitHub
commit 8af0ae171e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 256 additions and 166 deletions

View file

@ -129,6 +129,21 @@ class User
}
}
/**
* Get a user based on its 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
*