Ends in:
5 DAYS
23 HRS
25 MIN
22 SEC
Ends in:
5 D
23 H
25 M
22 S

Activities of "safi"

Hi,

Sorry, I thought you were using the latest version.

For version 4.4.3

public class MyRegisterModel : RegisterModel 
{ 
 
    ...... 
    [UnitOfWork] 
    public async override Task<IActionResult> OnPostAsync() 
    { 
        try 
            { 
                await CheckSelfRegistrationAsync(); 
                await SetUseCaptchaAsync(); 
 
                IdentityUser user; 
                if (IsExternalLogin) 
                { 
                    var externalLoginInfo = await SignInManager.GetExternalLoginInfoAsync(); 
                    if (externalLoginInfo == null) 
                    { 
                        Logger.LogWarning("External login info is not available"); 
                        return RedirectToPage("./Login"); 
                    } 
 
                    user = await RegisterExternalUserAsync(externalLoginInfo, Input.EmailAddress); 
                } 
                else 
                { 
                    user = await RegisterLocalUserAsync(); 
                } 
 
                if (await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedEmail) && !user.EmailConfirmed || 
                    await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber) && !user.PhoneNumberConfirmed) 
                { 
                    await StoreConfirmUser(user); 
 
                    return RedirectToPage("./ConfirmUser", new 
                    { 
                        returnUrl = ReturnUrl, 
                        returnUrlHash = ReturnUrlHash 
                    }); 
                } 
 
                await SignInManager.SignInAsync(user, isPersistent: true); 
 
                // this line  
                return Redirect("the URL what you want to redirect"); 
            } 
            catch (BusinessException e) 
            { 
                Alerts.Danger(GetLocalizeExceptionMessage(e)); 
                return Page(); 
            } 
    } 
} 

I have added debugger in this but not working debugger here directly going in swagger link

Email is not working now also after registration it's going to swagger link.

Solved

After adding ABP libs into the host project and changing the environment to the production site is not working. It's throwing a 500 error and If I check in the log file the getting below error

abp install-libs

I am using 4.4.3 abp version and it's installing the latest one so can we give version in this.

Hi liangshiwei

can u pls check this

abp install-libs

I am using 4.4.3 abp version and it's installing the latest one so can we give version in this.

Hi,

You can try it first, I think it should be easy to do.

Can we check this pls

Is anyone there?

Hi,

You can try it first, I think it should be easy to do.

Can we check this pls

Hi,

.... 
public class MyRegisterModel : RegisterModel 
{ 
 
    ...... 
 
    public async override Task<IActionResult> OnPostAsync() 
    { 
        try 
        { 
            await CheckSelfRegistrationAsync(); 
            await SetUseCaptchaAsync(); 
 
            IdentityUser user; 
            if (IsExternalLogin) 
            { 
                var externalLoginInfo = await SignInManager.GetExternalLoginInfoAsync(); 
                if (externalLoginInfo == null) 
                { 
                    Logger.LogWarning("External login info is not available"); 
                    return RedirectToPage("./Login"); 
                } 
 
                user = await RegisterExternalUserAsync(externalLoginInfo, Input.EmailAddress); 
            } 
            else 
            { 
                var localLoginResult = await CheckLocalLoginAsync(); 
                if (localLoginResult != null) 
                { 
                    LocalLoginDisabled = true; 
                    return localLoginResult; 
                } 
 
                user = await RegisterLocalUserAsync(); 
            } 
 
            if (await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedEmail) && !user.EmailConfirmed || 
                await SettingProvider.IsTrueAsync(IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber) && !user.PhoneNumberConfirmed) 
            { 
                await StoreConfirmUser(user); 
 
                return RedirectToPage("./ConfirmUser", new { 
                    returnUrl = ReturnUrl, 
                    returnUrlHash = ReturnUrlHash 
                }); 
            } 
 
            await SignInManager.SignInAsync(user, isPersistent: true); 
 
            // this line 
            return Redirect("the URL what you want to redirect"); 
        } 
        catch (BusinessException e) 
        { 
            Alerts.Danger(GetLocalizeExceptionMessage(e)); 
            return Page(); 
        } 
    } 
} 

This method is not exist CheckLocalLoginAsync

abp install-libs

It's already installed in host project and after running getting above error

Hi,

You can try it first, I think it should be easy to do.

Getting this error

Are you there?

Showing 121 to 130 of 347 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 26, 2024, 12:49