Custom Authentication Scheme Part 2
In Part 1 we showed you how to create your own custom authentication scheme. In this blog we want to add to our previously created custom authentication scheme the functions to change or reset the password.
Let's start with the function to change the password.
Before we can start we need the application from Part 1. If you haven't created it yet please follow the instructions from the first blog (https://tm-apex.blogspot.com/2020/03/custom-authentication-scheme-part1.html). Now we open the application builder of the application and create a new page which we call "CHANGE PASSWORD". In our example it is Page 9998. Change the Template Option to "Login". Then add a new static content region that we call "Change Password" and choose "Login" as Template Style. Next we need 4 Page-Items.
- Name: P9998_USERNAME
- Icon: icon-login-username
- Placeholder: Username
- Name: P9998_OLD_PASSWORD
- Icon: icon-login-password
- Placeholder: Enter Current Password
- Name: P9998_NEW_PASSWORD
- Icon: icon-login-password
- Placeholder: Enter New Password
- Name: P9998_NEW_PASSWORD_2
- Icon: icon-login-password
- Placeholder: Re-type New Password
- Name: CHANGE
- Label: Change Password
- Template: Text (Hot)
- Type: Normal
- Action: Submit Page
- Name: CANCEL
- Label: Cancel
- Template: Text
- Type: Primary
- Action: Redirect to Page in this Application
- Page: &APP_RETURN_PAGE.
- Name: RESET
- Label: Reset Password
- Template: Text (Hot)
- Type: Normal
- Width: Stretch
- Action: Submit Page
- Name: CANCEL
- Label: Cancel
- Template: Text
- Type: Normal
- Width: Stretch
- Action: Redirect to Page in this Application
- Page: 9999