Check out McCooey's Hexagonal Chess, our featured variant for May, 2025.


[ Help | Earliest Comments | Latest Comments ]
[ List All Subjects of Discussion | Create New Subject of Discussion ]
[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]

Comments/Ratings for a Single Item

EarliestEarlier Reverse Order LaterLatest
Index page of The Chess Variant Pages. Our main index page.[All Comments] [Add Comment or Rating]
🕸Fergus Duniho wrote on Sun, Mar 18, 2012 11:11 PM UTC:

I have put buttons for the Login page in the header for play.chessvariants.org. It is functional, but it is not yet integrated into the rest of the site. This means that you can sign in and out, but signing in won't yet do anything for you. Since I can't access comments for the Login page, I'll describe it here.

You can sign in with either your CVP userid or with an OpenID. Once you sign in, details about you are stored in $_SESSION variables. $_SESSION variables are like cookies but are stored on the server. This will create one cookie that identifies your session id. You can link your CVP account with an OpenID. You do this by signing into one while still signed into the other. Then, once they are linked, you can sign into your CVP account by signing into the OpenID linked to it. This will let you access your account when you forget your password, and it can be used as an alternate way to sign in. When you sign into your CVP account, one more cookie is created. This cookie contains your userid. This cookie will not let anyone sign into your account without your password. Your login session ends when you close your browser, and you will need to sign in next time you come to the site. The userid cookie is meant to persist beyond your session in order to make it easier to sign in again. In the header code I've created, it presents you with a sign in form with your userid already filled in if the userid cookie is set. If your password manager fills in your password, then signing in again is as easy as one click. Without the userid cookie, it just gives you a button to the login page if you are not already signed in.

I expect that site membership will give you more privileges than just signing in with an OpenID. One main use of the OpenID sign in is to expedite registration. By first signing in with your OpenID, you can join the site without email authentication of your identity, and it will also fill in the registration form, as much as it can, with appropriate values, including an available userid that is based on your OpenID userid or your name.

The next step will be to integrate session sign-ins with Game Courier.


🕸Fergus Duniho wrote on Sun, Mar 18, 2012 11:12 PM UTC:
Even though I put HTML in my last comment, it is not wordwrapping as it should. [EDIT: That was due to the long lines in other paragraphs. I have fixed it by adding widths to my paragraphs with CSS.]

(zzo38) A. Black wrote on Mon, Mar 19, 2012 03:57 AM UTC:
I logged in using OpenID, filling in 'zzo38computer' in the SREG nickname
field and '(zzo38) A. Black' in the SREG real name field. And then it did
not say anything about I was logged in (I did not reload the page), but I
filled in the normal form with my username 'zzo38computer' and my
password. And then it timed out, but then I reload the page and it says I
am logged in, including the OpenID.

Did I do it correctly?

In addition, when I try to view logs in the Game Courier, it always fills
in my user ID in the username field and if I change it or blank it, it
doesn't work. I want to view all logs, not only my own.

🕸Fergus Duniho wrote on Mon, Mar 19, 2012 01:04 PM UTC:

I am unfamiliar with the OpenID provider you used. So I assume you already know what an OpenID is and entered yours in the OpenID field that appears when you click on the OpenID button. It should have reloaded the login page when you signed in. There have been some bugs that have stopped it from reloading, and I have just fixed some. So you could try it again and report back if it works. When you successfully sign in with an OpenID, it should report to you the OpenID you are signed in with. If you saw that reported back to you, then you did it successfully. But the login page should have reloaded and told you of this immediately. Also, I checked if your OpenID is now associated with your CVP UserID, and it is not. If you were logged into both at the same time, this should have happened. I may have to look into this more to make sure it is working both ways.


(zzo38) A. Black wrote on Tue, Mar 20, 2012 04:03 AM UTC:

Yes, thanks, it works now, and now it says the account is linked.

(The username field in the Game Courier logs still fails to work correctly; and I know what is wrong. You use $_REQUEST to access the field and if it has the same name as a cookie, the cookie will override it. You can either change the name of the field, or change the GPC order. So far I deleted that cookie as a workaround, but you should fix it.)


🕸Fergus Duniho wrote on Tue, Mar 20, 2012 12:34 PM UTC:

Thanks for mentioning that before I observed the problem. Yes, using $_REQUEST to get the userid will now be a problem with the userid $_COOKIE. I have replaced the use of $_REQUEST with a conditional expression that returns the value of userid from either $_GET or $_POST.


Gus Duniho wrote on Tue, Mar 20, 2012 01:31 PM UTC:

For security reasons, signing in with an OpenID will first sign you out of any accounts you are in. If the OpenID you are signing into matches one linked to an account, it will sign you into the account. If the OpenID does not match any OpenIDs linked to accounts, but its verified email address matches an email address that is used for exactly one account, it will sign you into that account, and it will link the OpenID you signed in with with that account. So if you then sign in with a different OpenID account that has the same verified email address, it will not sign you into your account, and it will not change the OpenID associated with your account.

The security risk is that if you walk away from your computer while signed on, someone else could sign in with an OpenID and gain access to your userid. By signing you out of your account first, this security risk is eliminated. If you want to change the OpenID linked to your account, you will have to do it by first signing in with an OpenID, then signing into your CVP account. As I have time, I'll also add a confirmation on that, so that you cannot change which OpenID is linked to your account by accident.


🕸Fergus Duniho wrote on Thu, Mar 22, 2012 03:36 AM UTC:

I have added a script for changing your password to the Login page. If you have lost your password, you can now set a new one. All it requires is that you have an email address or an OpenID associated with your account.


🕸Fergus Duniho wrote on Thu, Mar 22, 2012 06:02 PM UTC:

I've been modifying the pages for viewing and editing user information. Instead of displaying your email address, a reCAPTCHA Mailhide is used. This protects your address from robots and spiders while allowing humans to see it. We used to store two email address for users. One was a private email you provided when you signed up, and the other was one you could edit. If you didn't want you email address to show up on your information page, you could delete your public email address, as many people have done. I have now consolidated the two email fields into one. Where the public email field was blank, the private email field got copied to it, and a new field for keeping your address private was set. Otherwise, the public email address was presumed to be more up-to-date and kept as your address.

These changes can be seen in the editmember.php page. The email field has been moved down and disabled. You cannot use that form to change your address. Instead, there is a separate script for changing your email address that sends a confirmation email to the new address and changes it after you confirm the change. There is a new checkbox for keeping your address from appearing on your information page. Since your address always shows up on editmember.php, that page is now accessible only when you are signed in to the account it is for. So you can't peek at the editmember pages of other users. Since your address is now more secure than it used to be, you may want to uncheck the option for keeping it off your information page. As it is now, no one can see it without answering a CAPTCHA.

Additionally, the form for changing your password has been removed from editmember.php, and it has been replaced with a link to a script for changing your password. Besides letting you change your password when you are signed in, it will let you change your password when you have forgotten it.


Ben Reiniger wrote on Thu, Mar 22, 2012 09:47 PM UTC:
I can't seem to get myself logged in now. Let me see if this message goes through... Yes, that worked. Hmm.

🕸Fergus Duniho wrote on Thu, Mar 22, 2012 10:19 PM UTC:
Logging in still isn't used for posting messages. That's still done by entering your userid and password.

F Duniho wrote on Thu, Mar 22, 2012 11:06 PM UTC:
There was a problem with logging in due to a change I made to php.ini. I had removed C from variables_order, so that the userid cookie wouldn't create problems in scripts that get a userid form value. It appears that C needs to remain in the EGPCS for sessions to work. So I put it back in. I'll probably just rename the cookie.

Ben Reiniger wrote on Fri, Mar 23, 2012 03:31 AM UTC:
Yes, the login wasn't working from the Play page; I just wondered whether something was wacky with my id/password, that's why I tested the message here. Now I can get logged in from the Play page, thanks.

🕸Fergus Duniho wrote on Fri, Mar 23, 2012 03:59 AM UTC:
The reCAPTCHA for hiding the email is now linked to a PHP drawn image of the email address, which draws the letters in different fonts, colors, and sizes at different angles and heights. This is designed to be readable to a human but not to a bot. The code for drawing the email address gets it from the database. So it doesn't appear in the URL.

🕸Fergus Duniho wrote on Fri, Mar 23, 2012 11:58 AM UTC:

I have replaced the reCAPTCHA mailhide code on displayperson.php with my own custom CAPTCHA code that displays the email address as a CAPTCHA along with piece images from randomly selected Chess fonts. To get an email mailto link, just solve the CAPTCHA, whose solution happens to be the email address. Click on my name to the left of this message for an example.


🕸Fergus Duniho wrote on Fri, Mar 23, 2012 10:48 PM UTC:

The email CAPTCHA should be bot-proof now. Maybe it was already bot-proof, but the latest changes I've made should require AI on a par with human intelligence to solve, or at least something far more sophisticated than I expect to be searching our websites for email addresses. It now uses a variety of randomly generated colors within a range that is dark enough for a white background. After everything gets written, the colors get scattered, such that neighboring pixels rarely have the same color, but not so much that humans will even take much notice of the differences. Finally, it is rendered as a JPG, which is a lossy format. The bottom line is that your email addresses are now safe from bots on this site. If you still want to keep your email address private, all you will gain is privacy from other humans. Privacy from bots is taken care of.


🕸Fergus Duniho wrote on Mon, Mar 26, 2012 04:48 PM UTC:

I am having trouble uploading files both by ftp and with the file manager. This has been going on for a few days and is rather frustrating. The result is that there are sometimes delays between spotting a bug and replacing it with working code. Although the problem seems to be on my end, I haven't isolated the cause.


🕸Fergus Duniho wrote on Tue, Mar 27, 2012 01:05 AM UTC:

I have now added code to Game Courier for recognizing players who are signed in. So far, it is available for accepting invitations and for moving. My tests so far indicate that it is working properly. I have moved in one game using the new method, and I will test it more as my turn comes around in other games I'm playing. If you're not signed in already, it will ask for your password as usual, then sign you in if it is correct. This is so it doesn't behave too differently from before.

A note to David. I rewrote the pass_okay function in play/pbm/userid.php. Before it checks whether the password is correct, it checks whether the user is already signed in. If the user is not already signed in, and the password is correct, it signs the user in.


🕸Fergus Duniho wrote on Tue, Mar 27, 2012 01:13 PM UTC:

Moving while signed in seems to be working well in Game Courier. This morning, I moved the setcookie expression from pass_okay to the header code for play.php. It checks the value of the userid in the session and sets the cvpuser cookie to it if it has a value.


Nicholas Wolff wrote on Thu, Mar 29, 2012 03:21 AM UTC:
Hey Fergus!

Maybe I'm doing it wrong, but I don't think so.  I am using an OpenID
using my Facebook account.  It says to link a CV account using it, I have
to then log in with my CV account after getting the OpenID up and running. 
I go that far.  The trouble is that I don't think the CV account is fully
linking up with the OpenID.  When I try to make a move, it says that I
need to be logged in.  It says my name up in the top right so I know I'm
logged in.  Can you please assist?  Thank you for your help!

Best,
Nick

🕸Fergus Duniho wrote on Thu, Mar 29, 2012 01:12 PM UTC:

Okay, it should work now. I was using a variable without defining it first. I deleted my OpenID from the database and used the fixed code to put it back. When it works correctly, you will see this message on the Login page near your OpenID: 'This OpenID is linked to your CVP account, such that signing in with it will automatically sign you into your CVP account.' Before showing this message, it checks the database to make sure the OpenID you are signed in with is connected to your account.


🕸Fergus Duniho wrote on Thu, Mar 29, 2012 06:01 PM UTC:
I have made a few slight modifications to indexingfuncs.php and to globalindex.css that will prevent most comments from being made too wide when some other comment is too wide. I changed the SPAN that surrounds the comment to a DIV, and in the style sheet I added a max-width attribute of 800px. The reason for switching to DIV is that max-width does not work with SPAN. The main problem now is with comments that are surrounded by PRE tags and have since lost their original linefeeds. I edited one to have suitable linefeeds but decided to stop there.

🕸Fergus Duniho wrote on Thu, Mar 29, 2012 08:20 PM UTC:
To make your email address even more secure, I have added bot and browser detection to the script that draws the email CAPTCHA. If it detects a bot or doesn't recognize the browser, it will display a different message than your email address. Firefox, Internet Explorer, Opera, Chrome, and Safari should all be recognized.

🕸Fergus Duniho wrote on Fri, Mar 30, 2012 12:30 PM UTC:
We have been using case-insensitive passwords here, but the login and password changing code I recently wrote did not take this into account. Since case-sensitive passwords are more secure, and it is easy enough to change your password if you forget it, I have decided to go with case-sensitive passwords. However, the database is full of case-insensitive passwords. So, I have built in backwards compatibility for case-insensitive passwords while allowing for new passwords to be case-sensitive. I have also modified the password checking code for posting comments. This comment will be a test that it works.

🕸Fergus Duniho wrote on Fri, Mar 30, 2012 12:31 PM UTC:
Here's another test. For this test, I will enter my password differently.

25 comments displayed

EarliestEarlier Reverse Order LaterLatest

Permalink to the exact comments currently displayed.