diff --git a/RMuseum/RMuseum.xml b/RMuseum/RMuseum.xml index a34b8770..d64784b9 100644 --- a/RMuseum/RMuseum.xml +++ b/RMuseum/RMuseum.xml @@ -11159,6 +11159,16 @@ html content + + + Start signup process using email + + + + + + + finalize signup and assign his or him comments to him or her diff --git a/RMuseum/Services/Implementation/GanjoorAppUserService.cs b/RMuseum/Services/Implementation/GanjoorAppUserService.cs index e19c2f84..291f18cb 100644 --- a/RMuseum/Services/Implementation/GanjoorAppUserService.cs +++ b/RMuseum/Services/Implementation/GanjoorAppUserService.cs @@ -149,6 +149,27 @@ namespace RMuseum.Services.Implementation return content; } + /// + /// Start signup process using email + /// + /// + /// + /// + /// + /// + public override async Task> SignUp(string email, string clientIPAddress, string clientAppName, string langauge) + { + RServiceResult res = await base.SignUp(email, clientIPAddress, clientAppName, langauge); + if(res.Result == null) + { + if(res.ExceptionString == "شما قبلا ثبت نام کرده‌اید.") + { + return new RServiceResult(null, "شما قبلا ثبت نام کرده‌اید. توجه بفرمایید که کاربران گنجینهٔ گنجور و پیشخان خوانشگران یکسانند و می‌توانید با همان نام کاربری اینجا وارد شوید."); + } + } + return res; + } + /// /// finalize signup and assign his or him comments to him or her /// diff --git a/RSecurityBackend/Services/Implementation/AppUserService.cs b/RSecurityBackend/Services/Implementation/AppUserService.cs index a290b77a..a6b3a8d4 100644 --- a/RSecurityBackend/Services/Implementation/AppUserService.cs +++ b/RSecurityBackend/Services/Implementation/AppUserService.cs @@ -1094,7 +1094,7 @@ namespace RSecurityBackend.Services.Implementation RAppUser existingUser = await _userManager.FindByEmailAsync(email); if (existingUser != null) { - return new RServiceResult(null, "شما قبلا ثبت نام کرده‌اید. توجه بفرمایید که کاربران گنجینهٔ گنجور و پیشخان خوانشگران یکسانند و می‌توانید با همان نام کاربری اینجا وارد شوید."); + return new RServiceResult(null, "شما قبلا ثبت نام کرده‌اید."); } existingUser = await _userManager.FindByNameAsync(email);