Recover password method

Hi
I'm developing an application (Apex 3.1.2 / 11g) where I'm using a table based authentication with hashed password (+based on Apress Pro Application Express+)
I would like to add an option to recover password. I believe that the best way to do it, is having some kind of generator that send a new password to the user, and then the user have the change to change it.
Can some one give some idea how I can do it?

Hi
I've created the following procedure to recover password
create or replace procedure recover_password (p_username in varchar2,
p_email in varchar2) is
bq. t_password varchar2(8):= ''; \\ v_hash varchar2(32); \\ l_body clob; \\ c_smtp_server varchar2(10) := 'localhost'; \\ c_smtp_port integer := 25; \\ c_from varchar2(40) := 'myemail'; \\ beginbq. t_password := dbms_random.string('U', 8); \\ v_hash := md5hash(upper(p_username) || t_password); \\ t_password := ''; \\ UPDATE UTILIZADORES \\ SET PASSWORD_HASH = v_hash \\ WHERE upper(p_username) LIKE upper(NOME); \\ l_body := l_body || p_username || ',' || utl_tcp.crlf; \\ l_body := l_body || utl_tcp.crlf; \\ l_body := l_body || 'A sua nova password é: ' || p_username || '.' || utl_tcp.crlf; \\ apex_mail.send(p_to => p_email, \\ p_from => c_from, \\ p_body => l_body, \\ p_subj => 'Recuperação de Password'); \\ apex_mail.push_queue(c_smtp_server, \\ c_smtp_port);
     end recover_password;
Since I'm using 11g I need to grant privileges to localhost, so used the code in this link.To test this I've created a page in oracle with two text boxes ( :P50_MOME and :P50_EMAIL), one button and one process (linked to my button) that executes the procedure:
recover_password(:P50_NOME, :P50_EMAIL);I don't get any error when I try it, I've not received any mail.

Similar Messages

  • How to recover Passwords Plus data after installing Lion?

    How to recover Passwords Plus data after installing Lion?

    While waiting for DataViz to rewrite the app, get another hard drive and install 10.6 on that; re-start from there, you can then open Passwords Plus. Use whatever method you like to copy the data. A bit of a chore yes, but I can't think of another way.
    There is in the AppStore Ascendo DataVault which performs the same function. I am going to wait a week for DataViz, then jump ship.

  • How to recover password Protected PDF Files

    Hi ALL,
    DO we have an option to recover password protected pdf files locked with acrobat.I didnt remember password's of some of my old pdf files
    Thanks,
    Mark
    http://infopeer.com

    I would just ask the 3rd party that created the PDF if they could supply unencrypted files. If there is some reason they will not, I am surprised that they have not restricted printing. Normally when Acrobat security is set, you can not print to a new PDF, even if printing is allowed. One option is to provide the ID and password to the other folks who need to review the PDFs. On the surface, there seems to be a license issue with what you are trying to do and you may need to be careful that the company is not at risk. That is why I am suggesting to coordinate with the 3rd party.
    Sorry. I don't have a solution but just the statement of concern.

  • How to recover password section?

    how to recover password section?

    Resetting or changing an account password:
    http://pondini.org/OSX/Password.html
    If you are referring to your Apple ID:
    http://www.apple.com/support/appleid/
    http://www.apple.com/support/appleid/contact/

  • Fail with recover password

    Hi my father tried to recover password and got that message: Sorry but that email address is not in our records, please try again.
    I'm 200% sure that email which I type to textbox is right. Because couple day ago my father recieved email from skype support.
    I also tried to contact with skype support but after 5 days and hips forms no result.
    Please assist! His email : [e-mail removed for privacy and security]

    Hi Kogotochek!
    It is not unreasonable to think that someone has stolen his skype account
    You say that he received email from skype support a couple of days ago -what was the contents of that mail? and what was the senders mail address?
    and remember - this is a user community and not a pure support forum
    -anders

  • HT201263 how to recover password to restore a phone from backup?

    Just wondering of there is a way in iTunes to recover password to restore a phone from backup?

    There is no way to "recover" a password.

  • I am trying to recover password by answering security questions. What is custom-question?

    I am trying to recover password to .me account by answering security questions
    After entering apple ID and date of birth it asks for custom-question rather than a specific question. How do I answer that?

    While creating a new account you had selected and answered those custom questions. Only you can know the answer!

  • HT201269 Just updated my iPhone to latest IOS but unable to match security code entered during update.  Phone now locked.  Is there some way to recover password?Is there

    Just updated my iPhone 4 to latest IOS but unable to match password security nbr. Phonoe now locked.
    Is there a way to recover password?

    Hi, thanks for the suggestion. I have tried as you suggested, and when opening the "purchased" apps some have the icloud logo next to them, but I only have "OPEN" against "Find My iPhone". When opening it up, it goes through the same routine; needs to be updated before proceeding, and wouldn't update because I don't have IOS8.
    Anything else I could try, or am I doomed!
    All of your help is much appreciated, thanks

  • Recover deleted method from class.

    Hi,
    Is there any way I can recover a method which I deleted from my active class. I haven't activated the new class yet.
    Regards,
    Swadhin

    even  if  you  have saved the deleted Method   just  go to se10  see the Change request   in which you have saved   from there  open the request you can see you class  and in the Method  which you deleted   Double Click on it and  see the method.
    otherwise  go for the Version Management of that Class not for the Method.
    Because  Your class is  like your Function Group so with that the version managemnet of the Class you can get it back ....
    Reward  points if it is usefull...
    Girish

  • HT201210 How to recover password of mini ipad?

    How to recover password of mini ipad?

    Sounds like a passcode, not a password
    You need to restore the device
    How to restore
    Via itunes
    http://support.apple.com/kb/HT1414

  • How to Recover Password on Cisco 2960 Switch?

    How to Recover Password on Cisco 2960 Switch? Who knows, please tell me the detail steps, thank you very much!

    You can find the detail steps on this article, hope can solve your problem.
    http://www.briefingwire.com/pr/how-to-recover-password-on-cisco-2960-switch
    and as I research, the WS-C2960X-48TS-L on sale on 3anetwork.com now, get a quote for the big discount.
    WS-C2960X-48TS-L
    http://www.3anetwork.com/cisco-ws-c2960x-48ts-l-price_p1542.html

  • Keychain Access to recover password: "Access to this item is restricted."

    I need to recover my network password, which I saved in my keychain, but can't figure out how to get it using keychain access.  I've tried to get keychain access to reveal other passwords which I do know, but I can't get it to show them either.  Here's what I tried to do:
    Opened Keychain Access, found the network name, and double clicked on it.  A window describes its attributes popped up, but the password field was blank.  Clicking on the "Show password" box brought a window saying "Access to this item is restricted."  I tried to retrieve other passwords in the keychain today using the same method with the same results.
    I'm running Snow Lion, version 10.6.8. 

    OK, I played around with keychain access for a while, but finally hit on it.  For the benefit of others with the same problem, here's what worked:
    There are two sections on the left sidebar, Keychains and Category.  I'd chosen "Passwords" in the Category section, and eventually, in poking just about everything in that window, I clicked on an arrow which expanded the Keychains section.  I kept playing until I clicked on System in the Keychains section.  That brought up all of my past networks.  I double-clicked on my current network's name and once again clicked on the "show password" box.  This time I was asked for my admin password, hit enter, and vois-la! there it was.
    The only thing that had happened in the meantime was that I ran Keychain First Aid's verify and repair (found in Keychain Acces's File menu).  I have no idea whether this is what changed things, or if it was just expanding the Keychains section, but now I can view any of my passwords in the Paswords choice in the Category section.
    Who knows if this will help anyone, but I'll go to some of the other recent threads and post a link to this thread in case it can.

  • Unable to recover password for my icloud from my apple id. Even the same apple id i can not recover ?

    My Apple id password has locked some how. I can not recover my apple id from the same email id or with security questions ?
    Please help cz it has synced with all ma 3 Idevices. Iphone 4, Iphone5, & Ipad 4.
    I can not turn off find ma iphone option for that it required password. which i can not recover.

    Go to https://getsupport.apple.com . Click' See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Lost or forgotten Apple ID password'. If you have any problems with that try this form: https://www.apple.com/emea/support/itunes/contact.html

  • Recovering password for a Pages document?

    I can't believe that if I've forgotten the password then the doc is gone, gone forever.
    I would have bet money on what my password was, but of course it's not working. No hints coming up, no other options to recover it.
    Don't know what to do. Oh dear.
    Any help would be greatly appreciated.

    The level of encryption is so high that you have two choices:
    1. Ask the CIA
    2. Ask the Russians.
    You did want it to be secure?
    I repeatedly warn users that the person you are most likely to keep out of your own files, is yourself. Nobody else really cares.
    Peter

  • HT2204 Recovering password for old Apple ID

    I copied my iTunes library to my new iMac from an external backup drived that was used with my now-scrapped G5 iMac. I didn't have any problem playing any songs.
    The problem I'm having on the new iMac is that some of my songs were purchased with an old Apple ID, and I no longer know the email address associated with it. The Mac is authorized, and plays all other songs just fine. I have searched and searched and can't find that there is a way to recover the password for my old ID if I don't know the address. Is this impossible to do? And if so, I assume the only thing I could do is repurchase the songs?

    Have you tried here...
    Is there a way to find my Apple ID Name if I can't remember it?
    How do I change or recover a forgotten Apple ID Password?
    From Here  >  http://support.apple.com/kb/HE37

Maybe you are looking for

  • Can't see external USB camera in iMovie or Quicktime. Macbook, running Yosemite

    I am using a Logitech C930e external USB camera with my Macbook running Yosemite 10.10.1. Trying to capture video - neither quicktime or iMovie recognize the external USB camera. Any suggestions?

  • Cordless mouse not working

    G5 using OSX 10.4.11 I have a Microsoft cordless mouse that was working but stopped. Arrow freezes on screen. A few times I removed battery and mouse worked until mouse was lifted from pad then stopped working at all. I have a Logitech cordless mouse

  • Add infotypes in transactioncode SWEHR1, 2 and 3

    I would like to add infotype 0041 in transactioncode SWEHR1, but where can I find which Obj.type I should use. BR  //  Peter B

  • Vertical coloured strip in lumia 520

    my nokia lumia showing a vertical strip left side of screen.it has a same colour pattern as right side.it has 2mm width. It some times appear some times diappear .i brought this cell 1 week ago. Not droppd or no physical damage happened..is this a de

  • K7N2-L maximum CPU support?

    Apologies if this has already been answered somewhere.  I just wanted to doubly confirm what the main site says about this mobo. I've a K7N2-L mobo with the latest BIOS.  Am I right in that it will support CPUs over and above 3000mhz as well as PC320