38 lines
1 KiB
C#
38 lines
1 KiB
C#
|
namespace Galaeth.Services.Constants;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Collection of standard error codes.
|
||
|
/// </summary>
|
||
|
public static class ServiceErrorCodes
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Username is already taken.
|
||
|
/// </summary>
|
||
|
public const string UsernameTaken = "username-taken";
|
||
|
|
||
|
/// <summary>
|
||
|
/// Email address already registered to a user.
|
||
|
/// </summary>
|
||
|
public const string EmailAlreadyRegistered = "email-already-registered";
|
||
|
|
||
|
/// <summary>
|
||
|
/// Invalid login credentials were provided.
|
||
|
/// </summary>
|
||
|
public const string InvalidCredentials = "invalid-credentials";
|
||
|
|
||
|
/// <summary>
|
||
|
/// This user is suspended from logging in.
|
||
|
/// </summary>
|
||
|
public const string SuspendedUser = "user-suspended";
|
||
|
|
||
|
/// <summary>
|
||
|
/// This user is banned from logging in.
|
||
|
/// </summary>
|
||
|
public const string BannedUser = "user-banned";
|
||
|
|
||
|
/// <summary>
|
||
|
/// This user's account is not yet activated.
|
||
|
/// </summary>
|
||
|
public const string PendingActivation = "pending-activation";
|
||
|
}
|