vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   mysql/php help (https://vborg.vbsupport.ru/showthread.php?t=170949)

Reecey 02-19-2008 06:38 PM

mysql/php help
 
Right i have had a custom usersystem made but its really bugging me by the fact user's have to ask for thier password to be reset if they forget it so could anyone help me with the mysql/php page that i will need like if someone could post the mysql/php code and tell me which bits to edit i will give REP.

Thanks

--------------- Added [DATE]1203455243[/DATE] at [TIME]1203455243[/TIME] ---------------

Anyone Please Help ???

Eikinskjaldi 02-19-2008 08:38 PM

You have not explained exactly what you want done.

Reecey 02-20-2008 10:02 AM

Right basically i need a php/mysql page making that will call a database table and allow the user to edit that value e.g. a change password page.

Opserty 02-20-2008 10:18 AM

There are hundreds upon thousands of PHP & MySQL tutorials out there, do a bit of searching!

No-one is going to give you all the code. Break down your solution to begin with and then look up how you need to each part...

E.g. Password Recovery:
  1. Generate a temporary random hash for the password recovery, store it in the database along with the time it was made. (The hash can be a md5() of the time and some random number, for example)
  2. Send a link to the page in an email to the email of user's account, (the link should include the hash in the url e.g. restpw.php?hash=....)
  3. On resetpw.php check there is a hash, if yes, then verify that the hash hasn't expired (like say after 1 day the hash is no longer valid (this is a timestamp comparison))
  4. If the hash is valid then provide them with a form to edit & confirm the new password
  5. Store the new password in the DB.
  6. Optional: Send an email to the user that the password has been reset


All times are GMT. The time now is 10:33 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00949 seconds
  • Memory Usage 1,712KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete