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

Slow login when users has no internet connection #2456

Closed
cr4zylemon opened this issue Oct 31, 2018 · 4 comments
Closed

Slow login when users has no internet connection #2456

cr4zylemon opened this issue Oct 31, 2018 · 4 comments

Comments

@cr4zylemon
Copy link

Expected behaviour

Login using local/active directory in 5 sec

Actual behaviour

Login using local/active directory in > 1 minutes...

Server configuration

Operating system:
Ubuntu 18.04.1 LTS
Web server:
Apache/2.4.29
Database:
MariaDB 10.1.34
PHP version:
7.2.10
Teampass version:
2.1.27.23

Client configuration

Browser:
Internet Explorer 11, Google Chrome 69, Firefox 62.0.2
Operating system:
Win7,10

Hi !

I have an issue while logging using local or Active Directory... During my investigations, I saw that pressing Login button, my client try to connect to ipapi.co... But, all my users have not Internet connection, so they can not access to the ipapi.co. So it makes the login very very slow (more than a minute regarding the browser...).

Is there a way to disable this check to ipapi.co ?

Thanks in advance.

@nilsteampassnet
Copy link
Owner

Yes it is a known drawback of this.

I will improve this by using another strategy.

@cr4zylemon
Copy link
Author

Hi Nils!

Thanks for your update (2.1.27.27), it solved the problem.

However, now, when I login, have an "information" window that appear which is empty. I close it and then appears a new one with the following message :
"An error appears. Answer from Server cannot be parsed!
Returned data: undefined"...

And then the server closes the session

@nilsteampassnet
Copy link
Owner

How sad.

I've done several tests without issue as you describe.

Can you please reproduce and get the answer from the server using the web console and following instructions

@cr4zylemon
Copy link
Author

Hello @nilsteampassnet

Sorry for no responding... I was at school and took in lot of project...
I recently upgraded to 2.1.27.29 and it seems to fix the issue :)

Thanks for you fast update !

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

No branches or pull requests

2 participants