Author Topic: build 299, still trying to log in, from a phone  (Read 1891 times)

0 Members and 1 Guest are viewing this topic.

Offline danny

  • Experienced poster
  • ***
  • Posts: 34
    • View Profile
build 299, still trying to log in, from a phone
« on: April 27, 2018, 03:56:23 PM »
How do I get a working login page?  (as in page)?

A large number of android devices require an HTML login page, quite like this (Except this one doesn't work):
Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><title>Login</title><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE, MAX-AGE=0"><meta name=viewport content="width=auto, user-scalable"><META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW"></head><body style="overflow:hidden" bgcolor=#151B54 text="white" alink="white" link="white" vlink="white"><table border="0" align="center" cellpadding="0" cellspacing="0" height="100%"><TR><TD valign="middle" align="center" style="vertical-align:center">
<div class="login" style="vertical-align:center"><font size=6>

      <h3>Log in to HFS</h3>
      <form method="post">
      Name<br>
      <input type="text" name="user" style="font-size:22"><br><br>
      Password<br>
      <input type="text" name="password" style="font-size:22"><br><br>
      <input type="submit" value="Login" style="font-size:28"><br>
      </form>

</font><><div>&nbsp;<></TD></TR></table></body></html>
Assuming:
web root has no password, no browse
The login html file is /index.html
/Files/ is password protected

Should this standard feature be working, or is there a script alternative available to run?   Halp
« Last Edit: May 01, 2018, 04:23:21 AM by danny »

Offline danny

  • Experienced poster
  • ***
  • Posts: 34
    • View Profile
Re: build 299, still trying to log in, from a phone
« Reply #1 on: April 28, 2018, 06:27:36 AM »


Most phones and tablets land at the [unauthorized] page, so it would be nice to replace that with a login form. 
« Last Edit: May 01, 2018, 04:22:18 AM by danny »

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 758
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: build 299, still trying to log in, from a phone
« Reply #2 on: April 28, 2018, 02:19:14 PM »
android devices on smart phone will pull up authentication windows (via default html code) from the default hfs html code...

Except on a protected resource, when visiting any page, you auto user aynomous

so first on a folder for your phone users,
you will have to set an account for login access on hfs

you may need to enable an option that when loging in throws the users name and passwords into the url for browsing

see pictures:
« Last Edit: April 28, 2018, 02:22:42 PM by bmartino1 »
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 758
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: build 299, still trying to log in, from a phone
« Reply #3 on: April 28, 2018, 02:25:48 PM »
if you require a true login page, you may need ftp acess, in with i would refer you to fhfs:
http://rejetto.com/forum/index.php?topic=10920.msg1060565#msg1060565

then you login page would be http://xxx.xxx.xxx.xxxip/~login

other wise tablets would get a simalar login message:
see picture
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Offline danny

  • Experienced poster
  • ***
  • Posts: 34
    • View Profile
Re: build 299, still trying to log in, from a phone
« Reply #4 on: April 29, 2018, 04:06:59 PM »
Your photo shows the built-in login page of a PC's web browser.  Neither the majority of android devices nor hfs have a built-in login page.  Then login is not possible, because the default landing page is the [Unauthorized] error message. 
Actually, instead of stuck at an error message forever, the [Unauthorized] section should be a login form. 
How do we accomplish that?
« Last Edit: May 04, 2018, 03:26:47 AM by danny »

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 758
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: build 299, still trying to log in, from a phone
« Reply #5 on: May 09, 2018, 06:27:17 PM »
An excellent question, one o don't have an answer to nor way to accomplish ATM.

Rejeto may be of better help here
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1

Follow members gave a thank to your post:


Offline LeoNeeson

  • Insane poster
  • *****
  • Posts: 437
  • Solitario...
    • View Profile
    • twitter.com/LeoNeeson
Re: build 299, still trying to log in, from a phone
« Reply #6 on: May 10, 2018, 06:48:03 AM »
HFS uses a Basic HTTP authentication. This Google Search could lead in some solution, but I currently don't have the time to read every solution given (keep in touch if you find a working solution).
• HFS ahora también disponible en Español! (Clic aqui) :)
• HFS is now also available in Spanish! (Click here)

Follow members gave a thank to your post:


Offline danny

  • Experienced poster
  • ***
  • Posts: 34
    • View Profile
Re: build 299, still trying to log in, from a phone
« Reply #7 on: May 11, 2018, 05:54:36 AM »
So, I wonder how to make this one work: 
Code: [Select]
$.ajax({
   'url': 'http://host.com/',
   //'otherSettings': 'othervalues',
   username: $("username").val(),
   password: $("password").val()
   },
   sucess: function(result) {
     alert('done');
   }
});
No luck yet though.  I don't have much scripting experience. 

Offline bmartino1

  • Insane poster
  • *****
  • Posts: 758
  • I'm only trying to help i mean no offense.
    • View Profile
    • none - google translate
Re: build 299, still trying to log in, from a phone
« Reply #8 on: May 11, 2018, 05:12:58 PM »
I would add a vitural folder that is password protected
Then add a real folder

Then try your code above.

Will probably be a week when I'm at a PC to try and test things again.
I'm only trying to help i mean no offense.
thank you for your time and patience,
Bmartino1