473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem with gathering password on MAC

Kelicula
176 Expert 100+
Hello all!
I am having this strange problem with the login on my current project site.
I am getting a username and password from the user, and then crypt'ing the password, and comparing it to a saved crypt'd password.
Now everything works fine, on my Windows comp. But my partner is using a Mac, and he can only sucessfully login by clicking the "login" submit button.
If he presses [enter] it kicks back my error message that the password is incorrect.
I have tried chomp, and subsituting "\r, and \n" for nothing, thinking it had something to do with a renegade newline being inserted into the password.
That didn't help.

I have never heard of a cgi script being platform fussy.

Has anyone ever heard of this, or know what could be causing it?

Here's my code (omitting my SQL password, and Handle):

[Admin Edit: Code removed at posters request]
Dec 23 '07 #1
5 1102
Kelicula
176 Expert 100+
I almost forgot to mention we are both accessing the same script hosted on our server. We live in different towns.

So it isn't a problem of running the script on our separate systems.
Dec 23 '07 #2
eWish
971 Expert 512MB
I don't see anything in your code that would cause what you are describing. It could simply be a browser issue. What browser are you using and what browser is your friend using?

--Kevin
Dec 24 '07 #3
Kelicula
176 Expert 100+
I don't see anything in your code that would cause what you are describing. It could simply be a browser issue. What browser are you using and what browser is your friend using?

--Kevin
I have tried it with Firefox and IE 7, he is using Opera, on the new Mac system.
Like I say, he can login by clicking the login button, but we both agree that many people will just hit enter, and become discouraged by this error.
However you CAN just hit enter, on a windows system.

????

crazy huh?

I tried, grabbing the password associated with the username from the database, and recording the length, then only using the substring of the user-submitted password to that length, thus chopping off whatever was at the end, but....then I remembered that they are crypt'd and are always going to be 13 characters no matter what they started with....

I'm at a standstill.
Dec 24 '07 #4
Kelicula
176 Expert 100+
Update, just in case anyone else ever runs into this.
We located the problem.

It's his keyboard. He has a "Bluetooth" keyboard, and that's the only thing we can think of, that it could be.

He has been able to login on a Mac, Safari, Firefox, IE, with hitting enter.

Only when he uses the bluetooth keyboard does he have a problem.

Very odd.
Feb 20 '08 #5
KevinADC
4,059 Expert 2GB
FiIk

(F if I Know)
Feb 20 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
6
by: John Morgan | last post by:
I urgently need tom use SP3a upgrade the instance of SQLServer200 MSDE runing on my local machine but I am having problems in doing so. My first problem is that when I start the set up procedure...
2
by: athos | last post by:
Hi All, Believe you have sound experience in development, however, before coding, when a project just started and is in User Requirement gathering, what special points shall we pay attention to,...
1
by: choubig | last post by:
I am gathering the date of my customer.. and I want to know the statistical result by using the SPSS Can this access database be converted to SPSS data?
0
by: melledge | last post by:
XTech 2006 Newsletter April 20, 2006 - Volume 1, Number 1 XTech 2006 - The gathering place for Web technologists XTech is THE forum for peer-to peer interaction, learning about new...
0
by: melledge | last post by:
XTech 2006 Newsletter April 20, 2006 - Volume 1, Number 1 XTech 2006 - The gathering place for Web technologists XTech is THE forum for peer-to peer interaction, learning about new...
5
by: John | last post by:
Hi I am trying to set a new password using the following code; Dim u As MembershipUser = Membership.GetUser(UserName) Dim OldPassword As String OldPassword = u.GetPassword If...
2
by: C | last post by:
Hi, I have come mainly from a Development background. I have now to get involved in some Requirements Gathering / Analysis. My Customer is going to give me a brief Requirements document of...
1
by: Jeff | last post by:
hey asp.net 2.0 I'm trying to create a web page where users can register to my web portal. But I've run into a layout problem when using the data validator classes. The problem is that the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.