Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Need Help Logging In (http://www.mysidiaadoptables.com/forum/showthread.php?t=3391)

blueskyler 12-11-2011 12:40 AM

Need Help Logging In
 
I just installed the script Version 1.2.4, but when I go to login,it says "Login Failed!
Sorry, we could not log you on with the details specified. You can try again or request a password reset." I know the password is right, and the password reset doesn't work. I Haven't edited any of the pages, either. Here is the code for my login.php:
PHP Code:

<?php

include("inc/functions.php");

//***************//
//  START SCRIPT //
//***************//

if($isloggedin == "yes"){

$article_title $langislog;
$article_content $langislogfull;

}
else{

//User is not logged in, so let's attempt to log them in...

$username $_POST["username"];
$username secure($username);
$password $_POST["password"];
$password secure($password);

//User is not logged in

$loginform "<form name='form1' method='post' action='login.php'>
  <p>Username: 
    <input name='username' type='text' id='username'>
</p>
  <p>Password: 
    <input name='password' type='password' id='password'>
</p>
  <p>
    <input type='submit' name='Submit' value='Submit'>
  </p>
  <p>Don't have an account?<br>
  <a href='register.php'>Register Free</a>  </p>
  <a href='forgotpass.php'>Forgot your password?  Click Here</a>
</form>"
;



if(
$loggedinname == "" and $password == ""){
// User is viewing login form
$article_title "Member Login:";

$article_content $loginform;
}
else if((
$username != "" and $password == "") or ($username == "" and $password != "") ){

//Something was left blank
$article_title "Login Error:";
$article_content "Something was left blank.  Please try logging in again.<br><br>{$loginform}";

}
else if(
$username != "" and $password != ""){
// Try to log the user in
$password passencr($username$password);

$result runquery("SELECT * FROM {$prefix}users WHERE username = '$username'") ;
$user mysql_fetch_array($result);  

if(
$username == $user['username'] and $password == $user['password']){
$article_title "Login Successful!";
$article_content "Welcome back {$username}.  You are now logged in.  <a href='account.php'>Click Here to view or edit your account.</a>";


// Set the cookie
$Month 2592000 time();
// Convert from username to uid to secure data, no need for password since it is already hashed. 
$uid usernametouid($username);
setcookie("auid",$uid,$Month);
setcookie("apass",$password,$Month);

}
else{
$article_title "Login Failed!";
$article_content "Sorry, we could not log you on with the details specified.  You can <a href='login.php'>try again</a> or <a href='forgotpass.php'>request a password reset.</a>";
$fail 1;
}
}




}


//***************//
//  OUTPUT PAGE  //
//***************//

echo showpage($article_title$article_content$date);

?>


Alaric 12-13-2011 08:31 AM

Need Help Logging In
 
Even I Had The same Problem , Just Click On "request a password reset".
Go To Your Email Click On The Link , You Will Get A (Random Password) Copy And keep It ,You Need To Paste It Below In The Change Password Area, Then Click On "Go To My Account" And Then Press "Change Password" ,


Your Current Password: Paste The Random Password Which The system gave You

Your New Password: Enter Your Own/New Password Now

Confirm New Password: Re-Enter Your Own/New Password Here.

blueskyler 12-13-2011 06:30 PM

I tried requesting a password reset, but I never got an email.

blueskyler 12-13-2011 07:26 PM

Never Mind. After re-installing, it worked.


All times are GMT -5. The time now is 09:59 AM.

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