Interface IUserManager
- Namespace
- Oqtane.Managers
- Assembly
- Oqtane.Server.dll
public interface IUserManager
Methods
AddUser(User)
Task<User> AddUser(User user)
Parameters
user
User
Returns
- Task<User>
DeleteUser(int, int)
Task DeleteUser(int userid, int siteid)
Parameters
userid
int
siteid
int
Returns
- Task
ForgotPassword(User)
Task ForgotPassword(User user)
Parameters
user
User
Returns
- Task
GetUser(int, int)
User GetUser(int userid, int siteid)
Parameters
userid
int
siteid
int
Returns
- User
GetUser(string, int)
User GetUser(string username, int siteid)
Parameters
username
string
siteid
int
Returns
- User
GetUser(string, string, int)
User GetUser(string username, string email, int siteid)
Parameters
username
string
email
string
siteid
int
Returns
- User
ImportUsers(int, string, bool)
Task<Dictionary<string, string>> ImportUsers(int siteId, string filePath, bool notify)
Parameters
siteId
int
filePath
string
notify
bool
Returns
- Task<Dictionary<string, string>>
LinkExternalAccount(User, string, string, string, string)
Task<User> LinkExternalAccount(User user, string token, string type, string key, string name)
Parameters
user
User
token
string
type
string
key
string
name
string
Returns
- Task<User>
LoginUser(User, bool, bool)
Task<User> LoginUser(User user, bool setCookie, bool isPersistent)
Parameters
user
User
setCookie
bool
isPersistent
bool
Returns
- Task<User>
LogoutUserEverywhere(User)
Task LogoutUserEverywhere(User user)
Parameters
user
User
Returns
- Task
ResetPassword(User, string)
Task<User> ResetPassword(User user, string token)
Parameters
user
User
token
string
Returns
- Task<User>
UpdateUser(User)
Task<User> UpdateUser(User user)
Parameters
user
User
Returns
- Task<User>
ValidatePassword(string)
Task<bool> ValidatePassword(string password)
Parameters
password
string
Returns
- Task<bool>
VerifyEmail(User, string)
Task<User> VerifyEmail(User user, string token)
Parameters
user
User
token
string
Returns
- Task<User>
VerifyTwoFactor(User, string)
User VerifyTwoFactor(User user, string token)
Parameters
user
User
token
string
Returns
- User