Activities of "learnabp"

Dear Albert

I am using the Commercial MVC template 4.2.2

I have commented the below lines in the *.Domain project and have setup the SMTP setting currectly, other emails are being sent out currectly.

        //#if DEBUG
        //context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
        //#endif

The verification emails are not set out as part of the login flow, the user has to be logged in and access their profile and click on verify, however if it is a new user how can they login to access their profile. The verification process should be done during log on and an email should be sent out to the user so they can verify their email and phone number for TwoFactor authentication to kick in.

Can you please let me know if the Verification of email and phone number is part of the login flow?

i have looked at the source code of the Account.Pro module which comes with the commerical template and i can't see the verification process in the login flow can you please confirm?

well may be this is not the best way .... becuase i am not using Ajax and becuase my form is using the Post method I have written some javasciprt to get over the hurdel of validating the TenantName and confirm password fields.

var abp = abp || {};

$(function () {

    var subscriptionService = window.desertFire.ppm.subscriptions.subscription;

    var $frmBuy = $("#frmBuy");
    var $btnRegisterTenant = $("#btnRegisterTenant");
    var $tenantName = $("#txtTenantName");
    var $txtAdminPassword = $("#txtAdminPassword");
    var $txtConfirmAdminPassword = $("#txtConfirmAdminPassword");

    $btnRegisterTenant.click(function (e) {
        e.preventDefault();

        var isTenantNameAlreadyExist = false;

        subscriptionService.isTenantNameAlreadyExist(

            $tenantName.val()

        ).then(function (isTenantNameAlreadyExist) {

            console.log(isTenantNameAlreadyExist);

            if (isTenantNameAlreadyExist) {

                abp.message.error("Sorry this Tenant Name: '" + $tenantName.val() + "' already exists, please choose another");

            } else if ($txtAdminPassword.val() != $txtConfirmAdminPassword.val()) {

                abp.message.error("The Password do not match, please ensure that the confirm password is the same!");

            } else {

                $frmBuy.submit();

            }
        });

    });

});

Dear Volosoft Team this is method the right approach?

what do you mean by DomainException .... do i have to throw the BusinessException in Domain Project

i am throwing the exception in my OnPost when i submit the form on a page to check if tenant exists


    if (tenant != null)
    {

        throw new UserFriendlyException(message: "Tenant Name already exists please choose another");

    }

what do you mean by DomainException .... do i have to throw the BusinessException in Domain Project

no a dialogbox which shows like the one that often says "internal error occured"

like above but with mu custom messgae of tenant not found

Yes that works

no thats not it still same result

This error was due to the Email password not being encrypted so i canned it to my DOmain project in ConfigureService and set it as a Gloabal setting

Thanks you are right i needed to verify the phone number and it works

You are right learnabp is a developer so can manage the organisation

Showing 51 to 60 of 93 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 12, 2025, 10:20