/    Sign up×
Community /Pin to ProfileBookmark

How to auto login into a device?

Hi all

I am trying to find a way to autologin into my access point.

Currently I have created this code but it never works the first time I load
the page.
ALL subsequent loads or reloads work fine. One actually has to reboot the
access point again to get the problem again and then again only once. This is really a annoying problem.

<HTML>
<BODY onLoad=”document.mainForm.submit()”>
<FORM METHOD=”POST” NAME=mainForm ACTION=”http://10.0.1.4/login.html“>
<INPUT TYPE=HIDDEN NAME=TAG4 VALUE=root>
<INPUT type=HIDDEN name=TAG1 VALUE=>
</FORM>
</BODY>
</HTML>

Anyone out there with a solution or maybe another way of autologin in !!!!!

Thanks

to post a comment
HTML

7 Comments(s)

Copy linkTweet thisAlerts:
@ray326Feb 04.2005 — "It doesn't work" isn't a really clear problem description. Exactly how does it fail?
Copy linkTweet thisAlerts:
@JonSnowauthorFeb 04.2005 — Hi ray326

Sorry I will give some more detail.

When loading/running the code the first time I never get logged in. All I get is the original login screen prompt where one is asked to type in the login and password. The reason I need it to login first time is that it is a option i give to my clients who use my software.

On a reload of the same page or if one closes the browser(or even reboots the PC) and loads the page up again it then happely auto logins into the access point from that point onwards. On has to reboot the acces point to recreate the error again.

Thanks for any help.
Copy linkTweet thisAlerts:
@BeachSideFeb 04.2005 — I don't know what you mean by access point but I thought instead of...

[code=php]<FORM METHOD="POST" NAME=mainForm ACTION="http://10.0.1.4/login.html">
<INPUT TYPE=HIDDEN NAME=TAG4 VALUE=root>
<INPUT type=HIDDEN name=TAG1 VALUE=>
</FORM>
[/code]


Shouldn't it be...
[code=php]<form name="mainForm" method="post" action="http://10.0.1.4/login.html">
<input name="TAG1" type="hidden" value="You need a value here!!!" />
<input name="TAG4" type="hidden" value="root" />
</form>[/code]


You don't have quotes around your hidden field attributes i.e. name, value and you are missing a value for your hidden field TAG1
Copy linkTweet thisAlerts:
@JonSnowauthorFeb 04.2005 — Hi BeachSide

Access point is like a router/hub(but for wireless devices) and thus has its own web interface to allow one to perform settings changes etc etc.

Sorry 'root' was the login and there is no password for that login (although i have tried it with a password and no success) ... I do aplogise .... not my finest hour

I have made the changes you suggested and it still does not function correctly, but now when loading/running the code the first time the login screen is shown with the [B]fields filled[/B] - this was not the case in pervious attempts.

PS I forgot to mention that I am newbie at html... but not to programming. ?
Copy linkTweet thisAlerts:
@BeachSideFeb 04.2005 — Ah I thought maybe you meant a PDA or something. As to your problem I have no idea without seeing the receiving code (the processing script that is called) and I might add that it is strange that the fields now fill themselves in. The only thing I did was rewrite what you had and made it correct by HTML standards.
Copy linkTweet thisAlerts:
@rspeedFeb 04.2005 — What exactly are you basing this form off of?

That is, where did the field names "TAG1" and "TAG4" come from?
Copy linkTweet thisAlerts:
@ray326Feb 04.2005 — Are you SURE the action you have is the action the router's login form uses?
×

Success!

Help @JonSnow 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 6.15,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...