Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8394117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:58:37+00:00 2026-06-09T19:58:37+00:00

I am a newbie to PHP. I want to create a module in which

  • 0

I am a newbie to PHP. I want to create a module in which the portal manager creates “Users” with a temporary password.

  1. Once user is created, that particular user should receive email with a link that expires in 24hrs.
  2. The Manager conveys the temporary password to user by some other means.
  3. If the User clicks email link within 24hrs, it should ask for temporary password, new password and have a confirm new password field.
  4. If temporary password is correct, then replace temporary password with new password in the database.

How should I implement this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:58:38+00:00Added an answer on June 9, 2026 at 7:58 pm

    I can’t write it for you because I have no idea how your application is structured, but this would be the general approach I’d take:

    1. User is created, presumably with a username, and these details are put in a database.
    2. The temporary password is generated as a random string. Store a hash (MD5, SHA – google them if you don’t know) in the database along with a timestamp of NOW()
    3. User logs in with username and temporary password. If the username and password match, and the current time minus the time logged is less then 24 hours, then ask for a new password. Do the same procedure, hash it and store it in the database. When they next log in, check the hashes match.

    Does that make sense or are any parts totally alien and need explained further?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a newbie question... I want to create a service which responds to
Am Newbie here.Am Beginner in php.I Create a sample Reg form.Here i want to
I'm a PHP-Newbie and want to create a simple Website to manage my CD
Being a GWT newbie, I want to create GWT frontend and a PHP backend,
I am a newbie of PHP coding, and want to do a simple math
I'm a total newbie and want to start with php. I know some javascript
I'm a newbie in php and Wordpress. I'm trying to create a script that
I am a newbie in php, mysql. I have written a hello.php script, which
I am newbie in android .i want to develop an application which has the
I created a code which generates content and I want to populate Wordpress's database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.