05/04/2007 - Thursday
Today I was planning to add weight entry to the healtheriser website. I didn't get that far as I stumbled across a few bugs in the login code that I thought I had fixed. This obviously took precedence over adding new features.
As the website uses OpenID to handle its logins you don't actually "signup" for an account (other than at the OpenID provider that you pick), so your account is created when you login for the first time. I'm also grabbing a few optional values from your OpenID login like your email, nickname, and gender so that these values can be stored for you from the beginning.
The first bugs turned up when I made a change to only allow certain values to be updated when submitted through a login. One of the values that I disallowed was the OpenID login url, which meant that the login code failed to save the account as it couldn't set the OpenID login url. I made a few changes to set this manually and that was sorted.
Then I was having problems getting the optional values that were being sent to me when logging in. I'm not sure if this was ever working right from the beginning, I never actually noticed, but I doubt it was. This was another quick and simple change once I actually worked out why the values weren't being saved (no error messages, just empty values being saved).
After I fixed those I decided to make the timezone list better as it wasn't actually working right when editing your account. I ripped out the city list one and just went with a simple "GMT-9", "GMT+4" list that holds all the timezones (all the ones that are displayed in the Windows XP timezone list). I also added in a daylight savings value as I had forgotten about that.
All in all a pretty decent day as I fixed the login bugs and got a working timezone list, although it would have been better if I had got the weight entry done. At least I'll be able to do that tomorrow!

1 comments:
congratulations.. and good luck. I really hope you get it done:)
Post a Comment