Reset password using custom authentication in oracle apex - oracle-apex

I have a custom authentication function and i also want to add reset password functionality.
So i added the reset button to login page and redirect it to change password page.
After this however i am confused as to how should i proceed to reset the password?
apex_util.reset_password->> will it help here?
I also need to update the new password with password in my table.
This is the custom auth function i am using.

Vini,
The apex_util.change_password is to update APEX User credentials. You are storing user credentials in your own table. Therefore, you will need to write your own PL/QL to update the appropriate record in your table.
Regards,
David

Related

Apex Change Password option for end users

I have created an apex application and I have some end users which should log in to the application and use it, I realized that there is not any change password or reset password option for end users !!!
How can I add it to login page ??
I have done that based on this link, but the problem is when any username is not entered, it goes to the change password page and after presseing the change password button an internal error box appears !
https://apex-de.blogspot.com/2017/11/change-apexuser-password-for-end-users.html
That page in the blog does not mention a username. And it shouldn't because a user should only be able to set/change a password for himself. Usually there are 2 ways to change a password, both can be implemented together:
A form that is accessible to any user that is logged in. That way you're sure that the password is changed for the actual user.
A link on the home page that points to a public form in which the user can enter his email address that is linked to his account. When the form is submitted the user gets an email with a link that contains a unique code that is linked to his email and only valid for x minutes. The email verification is needed to ensure the user that wants to change the password is who he says he is. Clicking on the link allows the user change the password. At no point the password is displayed to the user or emailed to the user.
Both of those can be implemented in apex - the api to change a users password is APEX_UTIL.CHANGE_CURRENT_USER_PW as mentioned in the blog.
The reason that by default there is no password management is that the authentication scheme "Application Express users" is rarely used for production applications. Usually it's social sign in, LDAP, SSO or SAML and "Application Express users" is only there for development purposes.

How do I prevent an admin (superuser) from changing/updating other user’s password?

I have a custom method for all users to reset password. It sends the password reset email to the user, user then click on password rest link and then resets his/her password. So, I want users to reset password only this way and don’t want any admin to reset any user password from Django Administration page. How do I prevent admin from changing/updating any other user’s password?
I don’t have any custom Admin Model yet. If this requires me to create a custom Admin model, please explain a bit, what things I will have to keep in the model to keep all the other functionality same as default Admin Model? Just a slight change required and that is not to let admin change any other user’s password.

How to get back roles in apex?

My problem is: Apex suggested me to change the admin passoword and i've changed the password in apex 4.1 application express. But after logout from my workspace and trying to login back apex has rejected my credetencials. And I don't why? Because the browser account saves my login data and pass automatically. Now I'm in bad situation. I've tried to reset password but we don't know the email which has been specified in apex for reseting password. Any suggestitions??

DRUPAL You are not authorized to access this page after clearing cookies

I was logged as a siteadmin on my local page, after clearing cookies I cannot login again on this same login and password. I tried to upload the backup of the database when i can login, but it not helped, i clear all the cache.
Did someone had a such problem? How to resolve it?
Thanks,
Vergili
try like this:
Go in PhpAdmin and select the database of your drupal website
Scroll down and Go to record users, admin user is always the first user id:1
Make EDIT the first user (admin user) and change field email with your email.
After email changed, go to your website and try to do "forgot password" on your loggin page, you will receive a email restore password in your email inserted in your database.
This can be a way to login again like admin.
If you have Drush installed you can navigate to your sites root directory in the console and type drush uli It will give you a one time login.
it will look like:
http://default/user/reset/1/1464702672/4-mLpgYQqVblYxY3xPq4hY6yF9K1vCvsvfOHgGNyhWg/login
Replace 'default' with your domain.

Reset Informatica admin password

Am using informatica9.0. i lost the admin password.
can you pls suggest some ways to reset it.
i have the encrypted password with me which i took from repository tables..
is there a way to login using that encrypted password. i tried replacing admin encrypred password with password of other users, but not able to login
i have other user names that are active and i have passwordfor them
is there any ways that i can make them admin
It may be possible to use the pmpasswd utility (found in the \server\bin folder) to generate a hash for a new password. You can then update the OPB_USERS record for the Administrator account with this hash to have it reset.
I would back up the value before you change it though, in case that doesn't work.