Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stuck on login #15

Open
1xs opened this issue Apr 18, 2016 · 13 comments
Open

Stuck on login #15

1xs opened this issue Apr 18, 2016 · 13 comments

Comments

@1xs
Copy link

1xs commented Apr 18, 2016

Hi, i'm trying to test the script but i'm already stuck on the fake login part. it returns 404. Without login the startpage is served but the fb integration is not possible for me to test right now. What could be the problem? I'm trying the fake login. that causes 404. No where in the startpage is a FB functionality visible.

@mhaas
Copy link
Owner

mhaas commented Apr 19, 2016

Hey,

please refresh my memory: what's the "fake login part"? The part where you simply provide a password?

That should simply redirect you to back to wifidog: https://github.com/mhaas/fbwlan/blob/master/handlers/fb_handlers.php#L312

@1xs
Copy link
Author

1xs commented Apr 19, 2016

hI, what meant is in your description to test FB and use : htp://myurl/login?gw_id=foo&gw_address=localhost&gw_port=8080
that gives me a 404.
I did not even get to the part of the router.

@mhaas
Copy link
Owner

mhaas commented Apr 23, 2016

Hey there,

I am afraid I can't quite follow. Can you give me a detailed rundown of what you are trying to achieve, what your results are and what you expected to see instead?

@1xs
Copy link
Author

1xs commented Apr 25, 2016

Hi Michael,

what i'm trying to achieve is being able to modify a
router as hotspot where guests need to checkin through facebook in order
to get access. from there i'll need to look how i can capture the users
but that's phase 2.

From what i understand in your description is that
installing the files on a webserver needs to be done first. So that's
what i did. In moved all the files including the fb sdk and flight to my
webserver. Then in your description that would be step 1. Further on to
test of that went well you can try the link you provided which looks
like:

http://example.xyz/login?gw_id=foo&gw_address=localhost&gw_port=8080

And
just there it is where i got stuck. Because this link gives me a 404
error. So i didn't even read on or do something else because of this
error. cause i'm afraid that when i'm done it still doesn't work.

Is
there something in this link that should be different?

I hope you have
an answer on this one.

Greetz from the Netherlands

Rob

Michael Haas
schreef op 2016-04-23 10:33:

Hey there,

I am afraid I can't
quite follow. Can you give me a detailed rundown of what you are trying
to achieve, what your results are and what you expected to see instead?

You are receiving this because you authored the thread.

Reply to this email directly or view it on GitHub [1]

Links:

[1]
#15 (comment)

@salmanansari
Copy link

salmanansari commented May 20, 2016

Hi Micheal,

I am also facing the same issue. Actually the issue is that we can not access the 'http://example.xyz/login?gw_id=foo&gw_address=localhost&gw_port=8080' URL as it says 404 error when accessing the URL. Where we have to define 'login' to use it?

@mhaas
Copy link
Owner

mhaas commented May 20, 2016

Hi there,

did you guys install the htaccess correctly? It may require some fiddling. All requests must go through index.php which then knows how to deal with paths like /login/.

@salmanansari
Copy link

Hi Micheal,

Thanks for the prompt response. I got the issue resolved. Thanks a ton for the hint. I must had missed the .htaccess installation part. Now its working 👍

@1xs
Copy link
Author

1xs commented May 22, 2016

@salmanansari can you tell me what you did in the .htaccess file? mine looks like this where the total script i in a subfolder of root called FB.
AddDefaultCharset UTF-8
RewriteEngine On

RewriteBase / is required to prevent endless internal redirects

Note: http://stackoverflow.com/a/12106419

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !=/index.php
RewriteRule ^(.*)$ index.php [QSA,L]

@salmanansari
Copy link

Hi @1xs,

Change your .htaccess file with below commands and then try:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]

Kindly make sure to rename htaccess to .htaccess

@1xs
Copy link
Author

1xs commented May 25, 2016

Great!! thx. so now I can continue to configure the router.

@salmanansari
Copy link

Great if that also worked for you. I am having issues working with wifiDog. I also have opened in issue while configuring wifiDog on DDWRT. If you have any luck then do ping me so I can also move forward with it :)

@salmanansari
Copy link

hey @1xs ,

Did you get any luck setting up the router with wifiDog?

@selcukv
Copy link

selcukv commented Oct 10, 2016

Although I changed the file name to .htaccess and rewrite rules, no success. I still get 404 error.

What else can be its reason?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants