473,398 Members | 2,389 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,398 software developers and data experts.

Need username/password setup help

8
I'm adding some pages to a website for a client and one of the options the client wants is for his employees to be able to login into a separate page for employees only, where they can retrieve information such as monthly schedules, etc. The person who created the website originally had made a link that would take you to that page. When you click on the link it prompts you to enter a password, but when you're entering the password you can actually see the words you're typing in.

What I need help with is: for each employee to be able to create a username and a password; and when typing in a password I don't want the letters to be visible. Are there premade codes for this somewhere?

If creating a separate username and password for each employee is dealing with too much (such as creating databases) then if somebody could help me with at least creating one same password for every employee to be able to use. The client wants this page (with company info) to be stored on his own server at his main office location.

The code that is currently present is: <a href="staffsite.html" onClick = "whereTo();return false">

Thanks in advance,
AR
Aug 23 '06 #1
4 4614
iam_clint
1,208 Expert 1GB
use a form and use <input type="password"
instead of <input type="text"

now that thats said, Javascript would be the last way you would want to do username and password logins -- first of all if its client side (javascript) there is not authentication with the server but local authentication whichs means that they can probably view the source of the page and use any of the predetermined logins made by whoever, the way i would go would but with a sql server and a server side scripting language such as PHP or ASP, If this is not an option you may want to look into some way of encrypting the data with possibly MD5 or something of the such.
Aug 23 '06 #2
arad
8
Here is the code that I have for the login icon, it was made by another person who originally created the website (but this website was never up on the internet yet). I'm not sure which platform the client has for his server that he has at his main office location.

function whereTo()
{
var magic_word = prompt("Enter Password","");
if(magic_word == "password")
{window.location = "index.html";}
else if (magic_word == "letmein")
{window.location = "staffsite.html";}
else
{window.location = "index.html";}
}

Then later in the code there's this:
<a href="staffsite.html" onClick="whereTo();return false"><img src="images/tooth.gif" width="51" height="72" border="0"></a>

Is there any help you could give me with this code that I already have?

And if I would need to use a server side scripting language such as PHP or ASP are there codes out there pre-made that I could use (and just revise them)?

thanks,
AR

use a form and use <input type="password"
instead of <input type="text"

now that thats said, Javascript would be the last way you would want to do username and password logins -- first of all if its client side (javascript) there is not authentication with the server but local authentication whichs means that they can probably view the source of the page and use any of the predetermined logins made by whoever, the way i would go would but with a sql server and a server side scripting language such as PHP or ASP, If this is not an option you may want to look into some way of encrypting the data with possibly MD5 or something of the such.
Aug 24 '06 #3
iam_clint
1,208 Expert 1GB
There are server side codes for a login script, easy to find on google example search would be ASP login script, another PHP login script..


as to the javascript those passwords are obviously visible just in view source

password takes you to index
letmein takes you to staff

infact you could type www.whateverwebsite.com/staffsite.html

and you would be in without even finding the password -- this is not a secure way of doing it...

you can make the html document itself password protected and not use the javascript merely have a link to it then it will prompt you with a password, if incorrect it gives you access denied.
Aug 24 '06 #4
arad
8
You mentioned that I can have the html document itself password protected, and not use javascript. How would I go about doing that? Is it complex?

Thanks in advance.

There are server side codes for a login script, easy to find on google example search would be ASP login script, another PHP login script..


as to the javascript those passwords are obviously visible just in view source

password takes you to index
letmein takes you to staff

infact you could type www.whateverwebsite.com/staffsite.html

and you would be in without even finding the password -- this is not a secure way of doing it...

you can make the html document itself password protected and not use the javascript merely have a link to it then it will prompt you with a password, if incorrect it gives you access denied.
Aug 24 '06 #5

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

Similar topics

5
by: lkrubner | last post by:
I have a webserver through Rackspace. I create a domain. I create an FTP user. I upload some files. I create a database called testOfSetupScript and then I create a database user named setup. I...
16
by: peshekeedweller | last post by:
Using asp.net 1.1. vb.net 2003. I am trying to connect to a remote sql server 2000 on a virtual machine running windows 2000 server. I can connect through the server explorer in visual studio,...
5
by: Learner | last post by:
Hello, Here is the code snippet I got strucked at. I am unable to convert the below line of code to its equavalent vb.net code. could some one please help me with this? static public...
11
by: Matthew | last post by:
Ok let me try to explain this as good as I can. I am creating this application where it contains a userlogin class. The user logs in before entering the main apploication. I want to do audit trails...
3
by: bb nicole | last post by:
I have did the company login and job post which means that company can post the job after they login in my webpage.. I had set company_ID(tablename:company) is foreign key of table job. But when i...
2
by: muchexie | last post by:
i have two scripts that are not running to reset a password that has been forgotten and the other to change old password. here are the scripts. change_passwd.php session_start();...
5
eragon
by: eragon | last post by:
I am making a password script, i have most of it done, ill show you, but i hit a brick wall.... lol, I have it so when you log in it takes you to your main page, that works, but when you enter the...
2
bmallett
by: bmallett | last post by:
I am getting the following error: Error Type: ADODB.Command (0x800A0BB9) Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.