phpScheduleIt
May 19, 2013, 05:58:18 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: phpScheduleIt 2.4.2 has been released!
Home
Help
Login
Register
phpScheduleIt
>
Modifications
>
Request Modification
>
Password change one time activity
Pages: [
1
]
« previous
next »
Print
Author
Topic: Password change one time activity (Read 519 times)
vipinmaster
Newbie
Karma: 0
Posts: 10
Password change one time activity
«
on:
December 07, 2011, 04:51:36 AM »
Hi Nick,
I want to do a one time password change activity.
I want that if a user log's in with the old password then the user should be redirected to the register edit page and then to cntrlpnl.php.
I need this only one time.
Please guide me how to do this.
Thanks
Vipin
Logged
vipinmaster
Newbie
Karma: 0
Posts: 10
Re: Password change one time activity
«
Reply #1 on:
December 09, 2011, 12:05:10 AM »
Hi,
Guys i got a solution for this . Delete Passwords from the Database and ask the users to use forgot password link first. When the user uses the link he/she will get a email with a new password with the following criteria:-
for ($i = 0; $i < 10; $i++) {
// Seed random for older versions of PHP
mt_srand(make_seed());
if ($i == 0)
$num = mt_rand(65, 90); // Lowercase letters
if ($i == 1)
$num = mt_rand(65, 90); // Lowercase letters1
else if ($i == 2)
$num = mt_rand(48, 57); // Numbers
else if ($i == 3)
$num = mt_rand(35, 38); // Special Character
else
$num = mt_rand(97, 122); // Uppercase letters
// Put password together
$pwd .= chr($num);
}
Then the user can change the password from the change profile page after logging in.
Thanks Nick
Any queries feel free to ask.
Thanks
Vipin
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Open Discussion
=> Donations
-----------------------------
Help and Support
-----------------------------
=> phpScheduleIt 2.x
=> EspaƱol
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
=> New Features and Suggestions
=> Developers
-----------------------------
Bugs
-----------------------------
=> phpScheduleIt 1.2.x
=> phpScheduleIt 1.1.x
-----------------------------
Modifications
-----------------------------
=> Post Modifications
=> Request Modification
-----------------------------
Development
-----------------------------
=> phpScheduleIt 2.0
-----------------------------
Off-Topic
-----------------------------
=> Non-phpScheduleIt Discussion
Loading...