mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
17 lines
713 B
C#
17 lines
713 B
C#
using Orchard.Security;
|
|
using System;
|
|
namespace Orchard.Users.Services {
|
|
public interface IUserService : IDependency {
|
|
bool VerifyUserUnicity(string userName, string email);
|
|
bool VerifyUserUnicity(int id, string userName, string email);
|
|
|
|
void SendChallengeEmail(IUser user, Func<string, string> createUrl);
|
|
IUser ValidateChallenge(string challengeToken);
|
|
|
|
bool SendLostPasswordEmail(string usernameOrEmail, Func<string, string> createUrl);
|
|
IUser ValidateLostPassword(string nonce);
|
|
|
|
string CreateNonce(IUser user, TimeSpan delay);
|
|
bool DecryptNonce(string challengeToken, out string username, out DateTime validateByUtc);
|
|
}
|
|
} |