#269 removing ganjoor specific words from RSecurityBackend
This commit is contained in:
parent
e6c398fcaf
commit
5932f2e677
@ -11159,6 +11159,16 @@
|
||||
<param name="signupCallbackUrl"></param>
|
||||
<returns>html content</returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.GanjoorAppUserService.SignUp(System.String,System.String,System.String,System.String)">
|
||||
<summary>
|
||||
Start signup process using email
|
||||
</summary>
|
||||
<param name="email"></param>
|
||||
<param name="clientIPAddress"></param>
|
||||
<param name="clientAppName"></param>
|
||||
<param name="langauge"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Services.Implementation.GanjoorAppUserService.FinalizeSignUp(System.String,System.String,System.String,System.String,System.String)">
|
||||
<summary>
|
||||
finalize signup and assign his or him comments to him or her
|
||||
|
||||
@ -149,6 +149,27 @@ namespace RMuseum.Services.Implementation
|
||||
return content;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Start signup process using email
|
||||
/// </summary>
|
||||
/// <param name="email"></param>
|
||||
/// <param name="clientIPAddress"></param>
|
||||
/// <param name="clientAppName"></param>
|
||||
/// <param name="langauge"></param>
|
||||
/// <returns></returns>
|
||||
public override async Task<RServiceResult<RVerifyQueueItem>> SignUp(string email, string clientIPAddress, string clientAppName, string langauge)
|
||||
{
|
||||
RServiceResult<RVerifyQueueItem> res = await base.SignUp(email, clientIPAddress, clientAppName, langauge);
|
||||
if(res.Result == null)
|
||||
{
|
||||
if(res.ExceptionString == "شما قبلا ثبت نام کردهاید.")
|
||||
{
|
||||
return new RServiceResult<RVerifyQueueItem>(null, "شما قبلا ثبت نام کردهاید. توجه بفرمایید که کاربران گنجینهٔ گنجور و پیشخان خوانشگران یکسانند و میتوانید با همان نام کاربری اینجا وارد شوید.");
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// finalize signup and assign his or him comments to him or her
|
||||
/// </summary>
|
||||
|
||||
@ -1094,7 +1094,7 @@ namespace RSecurityBackend.Services.Implementation
|
||||
RAppUser existingUser = await _userManager.FindByEmailAsync(email);
|
||||
if (existingUser != null)
|
||||
{
|
||||
return new RServiceResult<RVerifyQueueItem>(null, "شما قبلا ثبت نام کردهاید. توجه بفرمایید که کاربران گنجینهٔ گنجور و پیشخان خوانشگران یکسانند و میتوانید با همان نام کاربری اینجا وارد شوید.");
|
||||
return new RServiceResult<RVerifyQueueItem>(null, "شما قبلا ثبت نام کردهاید.");
|
||||
}
|
||||
|
||||
existingUser = await _userManager.FindByNameAsync(email);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user