Change Password Email Verify, User Authentication, Part-9

How to Change Password in Email Verification if you Forget Your Password in Oracle Apex Apps, User Authentication.


In today's post I will try to show you how to Change Password in Email Verification if you Forget Your Password in Oracle Apex. I hope you can easily use user authentication for your Oracle Apex application using the SQL code provided by me.
Click on the link below to view the previous post and video how to create google authentication in oracle apex. User Authentication
          How To Create Google Authentication in || User Authentication, Part-8

Some discussion about Change Password in Email Verification if you Forget Your Password in Oracle Apex, User Authentication, Part-9

"User Authorization" is an important issue for any web application. Without the use of "User Authorization", no application is complete.
I will try to show all the important User Authentication things in the Oracle Apex application through a few parts, including user login according to "User Authorization", user role, user log, user menu usage. Hopefully, if you see all the parts related to "User Authorization", you can easily use "User Authorization" in Oracle Apex.
In my previous video User Authorization Part-1, I tried to show you how to create user authentication tables, sequences, packages, trigger keys.
I have tried to show you how to add Create New Account button in User Authorization Part-2.
I tried to show you how to create a change password page in Oracle Apex in User Authorization Part-3.
I tried to show you how to use reset password button in Oracle Apex in User Authorization Part-4.
In User Authorization Part-5, I have tried to show you how to create custom and dynamic navigation menus with PNG images and icons.
In User Authorization Part-6, I have tried to show you how to create How to Set Menu According To User Access Role.
I have tried to show you how to create Add Edit Button in Report According to User Access Role in User Authorization Part-7.
I have tried to show you how to create access to google authentication in oracle apex in user authorization part-8.

Steps to Change Password in Email Verification if you Forget Your Password in Oracle Apex, User Authentication, Part-9

In today's post I will try to show you how to Change Password in Email Verification if you Forget Your Password in Oracle Apex. User Authentication I hope you can easily use user authentication for your Oracle Apex application using the SQL code provided by me.

1. Create a New page. Name- Forgot Password
2. Create Item Name- Email_Address
3. Create a Validation Name- Get Email Address
    PL/SQL Function Body............................


            DECLARE
                v_email   NVARCHAR2 (50);
                BEGIN
                SELECT EMAIL_ADDRESS
                  INTO v_email
                  FROM MY_USERS
                 WHERE EMAIL_ADDRESS = :P38_EMAIL_ADDRESS;
                RETURN TRUE;
            EXCEPTION
                WHEN OTHERS
                THEN
                    RETURN FALSE;
            END;
               
4. Create a New Processes Name- Send Email

                    DECLARE
                        l_body_html   CLOB;
                        v_name        NVARCHAR2 (50);
                        v_code        NVARCHAR2 (50);
                        v_email       NVARCHAR2 (50);
                    BEGIN
                        SELECT EMAIL_ADDRESS, PASSWORD_RECOVERY_CODE
                          INTO v_email, v_code
                          FROM MY_USERS
                         WHERE EMAIL_ADDRESS = :P38_EMAIL_ADDRESS;
                         l_body_html :=
                           <body>
            <div style="height:300px;  margin-left: 15px; width: 100%;border: 1px solid rgb(167, 162, 162);box-shadow: 2px 2px 5px 2px rgb(216, 204, 203);">
                <div style="background:#244283; height: 40px; width: 100%;color:#fff;">
                    <h2 style="margin-left:20px; margin-top: 0px; padding-top: 10px;">Account Verification Email</div>
                </div>
                <div style="height: 45px;margin: 20px;">
                    <p>Recover your password.<br />To verify your account please click the link below.</p>
                    <p><a href="https://apex.oracle.com/pls/apex/my_stock/r/demo-application-oracle-apex/email-verification?P39_EMAIL_ADDRESS='      || v_email      || '">
                    <b> Verify Your account </b></a></p><br />
                </div>
            </div>
        </body>               
                      ';
                        APEX_MAIL.SEND ( :P38_EMAIL_ADDRESS,
                                        'no-reply@oraclelearner.com',
                                        l_body_html,
                                        l_body_html,
                                        'Account Verification Email',
                                        NULL,
                                        NULL,
                                        NULL);
                    EXCEPTION
                        WHEN OTHERS
                        THEN
                            NULL;
                    END;
               
5. Create a New page Name- Email Verification
6. Create a Region Name- Email Verification

                    <div style = "text-align:center; color:red;">
                        <div style="font-size:1.3rem;">
                        	<b>
                            Congratulation, Your account verification is done.<br />
                            <u> Change Your Password. </u>
                            </b>                   
                        </div>
                    </div>
                
7. Create Item Name-EMAIL_ADDRESS, NEW_PASSWORD, CONFIRM_NEW_PASSWORD
8. Create a Validations Name-New Password

                        :P14_NEW_PASSWORD = :P14_CONFIRM_NEW_PASSWORD
               
9. Create a Buttons Name-Submit
10. Create a Processes Name-Update Processes
    PL/SQL code

                    BEGIN
                        UPDATE MY_USERS
                           SET PASSWORD = :P39_CONFIRM_NEW_PASSWORD,
                               pin = :P39_CONFIRM_NEW_PASSWORD
                         WHERE EMAIL_ADDRESS = :P39_EMAIL_ADDRESS;
                    
                        APEX_APPLICATION.g_print_success_message :=
                            'Password Successfully Created';
                    EXCEPTION
                        WHEN OTHERS
                        THEN
                            APEX_APPLICATION.g_print_success_message := 'Password Not Updated';
                    END;
               

If there is any problem with the SQL code provided by me then you can definitely let me know by mail or mobile number and comment. I must give you any SQL code. User Authorization

See My Demo Application.
            Url- Demo Application
            Username- demo, Pass- demo




Links to all the parts related to User Authorization will be given below.

1. User Authorization Schemes, Part-1 Video Url- https://youtu.be/vSdzwnkFDRs
2. Add Create New Account button on the login page, User Authorization, Part-2 Video Url- https://youtu.be/IajwZ5dp6Qc
3. Create a ChangePassword Page, User Authorization, Part-3 Video Url- https://youtu.be/iRXsO0MTOuM
4. Reset Password, User Authorization, Part-4 Video Url- https://youtu.be/IK3PjyWGQIA
5. Dynamic Navigation Menu, User Authorization, Part-5 Video Url- https://youtu.be/Ozoc4cpjBKY
6. Set Menu According To User Access Role, User Authorization Part-6 Video URL- https://youtu.be/X407N_N2HNM
7. Add Edit Button in Report According to User Access Role || Oracle APEX? User Authentication, Part-7.User Authorization Video URL- https://youtu.be/n9W64qUoS1E
8. Access google authentication in Oracle Apex | Google Authentication. User Authorization Video URL- https://youtu.be/X407N_N2HNM
9. Change Password in Email Verification if you Forget Your Password. User Authorization Video URL- https://youtu.be/MPZQuraig7w

Hope you find this post helpful User Authorization. To see more about Oracle Apex User Authorization, you can visit my website.
You can also visit my youtube channel. I try my best to share my education with everyone. I will always try to give you something new. Please help by subscribing to my youtube channel.

Many thanks for visiting the site.

Then Enjoy......................... User Authentication Part-9

Change Password in Email Verify. User Authentication, Part-9

Post a Comment

Hlo Sir

Previous Post Next Post