/    Sign up×
Community /Pin to ProfileBookmark

Auto-Login help needed…

need help on how to write a javascript to pass a username and password automatically into a login form and submit it – using an iframe command. The purpose is to seamlessly integrate into a proprietary cms functionality from an open-source software that is behind a login screen. I am setting it up to have a universal id for this particular function but am not sure exactly how to pass the username/pass into a ‘post’ form and have it autosubmit.

Help!
Thanks!
Monica

to post a comment
JavaScript

7 Comments(s)

Copy linkTweet thisAlerts:
@creedoMar 02.2007 — what you mean.please explain further..is the data password and username in the database?...
Copy linkTweet thisAlerts:
@nutshell1authorMar 02.2007 — Yes, the username and password are in the database. Its a single user/pass that is already active and works right now as a form with user input. I want to automate the login process.. clearer?

Thanks!
Copy linkTweet thisAlerts:
@creedoMar 02.2007 — if im not mistaken your database is comprises only of one username and password?..then if anyone who enter the site will automatically be log in using the same password and username?..
Copy linkTweet thisAlerts:
@nutshell1authorMar 02.2007 — for this particular function, yes that's true. I've set up a universal name/password that will be passed to the form for auto-login...
Copy linkTweet thisAlerts:
@creedoMar 02.2007 — need help on how to write a javascript to pass a username and password automatically into a login form and submit it - using an iframe command. The purpose is to seamlessly integrate into a proprietary cms functionality from an open-source software that is behind a login screen. I am setting it up to have a universal id for this particular function but am not sure exactly how to pass the username/pass into a 'post' form and have it autosubmit.

Help!

Thanks!

Monica[/QUOTE]


you want to post the username and id in the iframe to be use and integrate with the cms?.why do you need to log in?..you can set or call the data in the database using the server side script in your iframe since it will be as you said universal anyway...

one more thing if you want to call the data in the database using javascript..why dont you take a look or have a quick search on ajax..i believe it is more flexible and getting the data in the database using it with php scripting is much more flexible..i use it on my chatroom where i get the data from the database and send it to my iframe..
Copy linkTweet thisAlerts:
@nutshell1authorMar 02.2007 — Thank you for the ajax suggestion. I've yet to use it. Basically, I am looking for the easiest way to autologin into a section of an open source software for certain members of my clients membership site (using another software) - the goal is to avoid dual sign-in/registrations and the complexity of marrying two authentication pieces. It seemed to me the easiest way to accomplish this is to 'wrap' the interface for the other software into the existing cms and using iframe autologin the clients to the section they need to access to post information. (Other customization of this software is handling the editing of the posted information / tracking which is the purpose of the log in authentication in the first place).

Thanks for any suggestions you have to resolve this in the simplest, most effective way possible! ?
Copy linkTweet thisAlerts:
@nutshell1authorMar 02.2007 — What if I used a form of document.open & document.write to pass the universal username & password to the form? How would I ensure that the form with the auto-filled fields autosubmits? (remember this login area is protected through an external user encryption there is no security risk here...)
×

Success!

Help @nutshell1 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...