Giter Club home page Giter Club logo

Comments (13)

benjamw avatar benjamw commented on August 12, 2024

What kind of error is it giving you?

from chess.

jlmurillo avatar jlmurillo commented on August 12, 2024

It appears an error that it doesn't verify the password and doesn't let me
change anything (personal info and play in the same computer).
I try to change the code with password_verify, but it doesn't work.
El 20/11/2015 22:10, "Benjam Welker" [email protected] escribió:

What kind of error is it giving you?


Reply to this email directly or view it on GitHub
#4 (comment).

from chess.

benjamw avatar benjamw commented on August 12, 2024

So this is only happening when you try to play with two players on the same computer? Or when you are trying to change the user's password?

from chess.

benjamw avatar benjamw commented on August 12, 2024

Redownload the script, the only two files you need to worry about are:

  • includes/index.inc.php
  • opppass.php

All others are the same.

If you've made translation edits in those files, you can edit the lines specified in the commit log and get the same results.

Let me know if you find any other issues. Enjoy the game!

from chess.

jlmurillo avatar jlmurillo commented on August 12, 2024

Yes. I have found that

if ((isset ($ _ POST ['pwd Password']) && (''! = $ _ POST ['pwd
Password'])) && ($ dbPassword! = substr ($ _ POST ['pwdOldPassword'], 5)))

in includes / index.inc.php always fails, but say well password

and

if ($dbPassword == substr($_POST['pwdPassword'],5))

also fails

and
http://craaltaribagorza.educa.aragon.es/saladeajedrez/index.php?page=admin
I do not get change anything (reset password, admin, delete)

:-(

El 20/11/15 a las 23:52, Benjam Welker escribió:

So this is only happening when you try to play with two players on the
same computer? Or when you are trying to change the user's password?

from chess.

jlmurillo avatar jlmurillo commented on August 12, 2024

I tried with
if (password_verify ($ _ POST ['pwdOldPassword'], $dbPassword)) {
echo 'The password is valid!';
}
else {
echo "The password is invalid. ';
}
in includes / index.inc.php
and the page is blank
:-(

El 20/11/15 a las 23:52, Benjam Welker escribió:

So this is only happening when you try to play with two players on the
same computer? Or when you are trying to change the user's password?


Reply to this email directly or view it on GitHub
#4 (comment).

from chess.

jlmurillo avatar jlmurillo commented on August 12, 2024

however, the password login.php works well and lets go

El 20/11/15 a las 23:52, Benjam Welker escribió:

So this is only happening when you try to play with two players on the
same computer? Or when you are trying to change the user's password?


Reply to this email directly or view it on GitHub
#4 (comment).

from chess.

jlmurillo avatar jlmurillo commented on August 12, 2024

same problem

El 21/11/15 a las 00:16, Benjam Welker escribió:

Redownload the script, the only two files you need to worry about are:

  • includes/index.inc.php
  • opppass.php

All others are the same.

Let me know if you find any other issues. Enjoy the game!


Reply to this email directly or view it on GitHub
#4 (comment).

from chess.

benjamw avatar benjamw commented on August 12, 2024

Did you apply the changes shown in that commit? Those changes fix the issue you were having.

You must change the shown lines to be exactly as shown. You've used password_verify when the function is in fact called password_test.

Make sure those lines are exactly the same.

from chess.

jlmurillo avatar jlmurillo commented on August 12, 2024

Solved. Thanks.

in includes/index.inc.php I've changed:

if ((isset($_POST['pwdPassword']) && ('' != $_POST['pwdPassword'])) &&
($dbPassword != substr($_POST['pwdOldPassword'],5)))
{
$errMsg = "Sorry, incorrect old password!";
}
else
{
...
}

to:

if ((isset($_POST['pwdPassword']) && ('' != $_POST['pwdPassword'])) &&
(password_test($_POST['pwdOldPassword'],$dbPassword)))
{
...
}
else {
$errMsg = "Lo sentimos, la contraseña actual no es correcta!";
// in spanish ;-)
}

in includes/opppass.php I've changed:

 /* check to see if supplied password matched that of the DB */
 if ($dbPassword == substr($_POST['pwdPassword'],5))

to

 /* check to see if supplied password matched that of the DB */
 if ($dbPassword == password_test($_POST['pwdPassword'],$dbPassword))

and all is perfect ;-)

I just wanted to go out to notifyyou ($errMsg) of the change to reload
the page because if you do not know message. Any ideas?

El 21/11/15 a las 00:56, Benjam Welker escribió:

Did you apply the changes shown in that commit? Those changes fix the
issue you were having.

You must change the shown lines to be exactly as shown. You've used
|password_verify| when the function is in fact called |password_test|.

Make sure those lines are exactly the same.


Reply to this email directly or view it on GitHub
#4 (comment).

from chess.

benjamw avatar benjamw commented on August 12, 2024

Glad that worked out for you.

from chess.

jlmurillo avatar jlmurillo commented on August 12, 2024

Thank you. To us it is helping us a lot

El 22/11/15 a las 07:18, Benjam Welker escribió:

Glad that worked out for you.

from chess.

benjamw avatar benjamw commented on August 12, 2024

In regards to the $errMsg, please create a new issue for that.

from chess.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.