login

intermittently fail to log in with Asp.net Identity 2

喜你入骨 提交于 2020-01-24 16:47:06
问题 Visual studio 2013, Asp.net Identity 2.1.0 My log in page (generated by vs2013 by default), (1) sometimes I can log in (2) sometimes I fail to login. when fail to login, they staying on login page, but with "?ReturnUrl=..." at the end of url. Open two browser at the time, say one is IE and another is Chrome, then I find Chrome succeed and IE failed. when I log in successfully, I saw this on response header by using Fiddler: Set-Cookie: .AspNet.ApplicationCookie=MlpChRy8gmGaxxIAo9EFbGrWf4J3mm.

Facebook SDK returned an error: Stream returned an empty response in facebook SDK5 php

淺唱寂寞╮ 提交于 2020-01-24 12:06:06
问题 A few days ago I manually installed facebook SDK 5.0 and the login module so users can login with facebook. It worked great until yesterday. When I try login the page loads for 1 minute and then an empty page apears with the error: Facebook SDK returned an error: Stream returned an empty response the url looks like this: http://example.com/calls/login/loginFb.php?code=AQCCasdfSAD35L-3iABFbT5zntYQ4jJHVcko9ekG-6k-jn5aERodXoasdf7jHWEgSxxqze_K

Facebook SDK returned an error: Stream returned an empty response in facebook SDK5 php

╄→гoц情女王★ 提交于 2020-01-24 12:05:46
问题 A few days ago I manually installed facebook SDK 5.0 and the login module so users can login with facebook. It worked great until yesterday. When I try login the page loads for 1 minute and then an empty page apears with the error: Facebook SDK returned an error: Stream returned an empty response the url looks like this: http://example.com/calls/login/loginFb.php?code=AQCCasdfSAD35L-3iABFbT5zntYQ4jJHVcko9ekG-6k-jn5aERodXoasdf7jHWEgSxxqze_K

Chrome, Safari and Opera do not remember password on simple form

萝らか妹 提交于 2020-01-24 10:33:11
问题 I first had the problem with an AJAX login, and after looking for a solution for hours I thought I would try something as simple as this: <html> <head></head> <body> <form id="login_form" action="login.html" method="post"> <input type="text" id="login_username" value="" /> <input type="password" id="login_password" value="" /> <input type="submit" id="login_submit" value="Login" /> </form> </body> </html> It goes to login.html but does not offer to save the password! I thought it might be a

How to prevent multiple user login with same user name and password? [duplicate]

好久不见. 提交于 2020-01-24 00:59:20
问题 This question already has answers here : How do I expire a PHP session after 30 minutes? (13 answers) Closed 5 years ago . I am developing secure login system with php. I want to prevent multiple login for user with same username and password. With my script user can login on account from different browsers or from different IP with same username and password. I need to add some column on my database. When user logged in field becomes 1, and account is locked, when user logged out account is

Programmatically login in dotnetnuke

限于喜欢 提交于 2020-01-23 19:04:27
问题 hey guys, i am using dotnetnuke as my CMS, for some reason i want to manually login user into the site, i am able to login but the problem is, even if i enter the invalid password, still dotnetnuke log me in. i am using below code. UserInfo objUser = new UserInfo(); objUser.Username = Login1.UserName; UserMembership objMembership = new UserMembership(objUser); objMembership.Username = Login1.UserName; objMembership.Password = Login1.Password; objUser.Membership = objMembership; /

Programmatically login in dotnetnuke

人走茶凉 提交于 2020-01-23 19:03:05
问题 hey guys, i am using dotnetnuke as my CMS, for some reason i want to manually login user into the site, i am able to login but the problem is, even if i enter the invalid password, still dotnetnuke log me in. i am using below code. UserInfo objUser = new UserInfo(); objUser.Username = Login1.UserName; UserMembership objMembership = new UserMembership(objUser); objMembership.Username = Login1.UserName; objMembership.Password = Login1.Password; objUser.Membership = objMembership; /

How to manage multiple accounts login and logout in different browser pages?

夙愿已清 提交于 2020-01-23 15:21:25
问题 I have a website built on App Engine(Java) and need user use Google Account to login. The situation is that: User Adam has multiple accounts. User Adam login with account Adam1 and get his Adam1 data in browser page A. He clicked logout link, but opened it in another tab page B(the same browser of course) He login with another account Adam2 in browser page B get his Adam2 data shown. He then returned to browser page A and made some changes to his data and then send to server, at this time my

Custom authentication in a Symfony 3 using external REST API

半世苍凉 提交于 2020-01-23 06:36:28
问题 I would like to write a basic login form, which authenticates users by sending a request to an external REST API. The external API receives the login/password and return 200 (ok) if the credentials are correct. However, I can't implement it via the UserProviderInterface, because the external REST API give me the password in the reply. (I can't fill the user password in the loadUserByUsername method). I found a valid solution here, but it uses classes that have been removed in Symfony 3 :

Custom authentication in a Symfony 3 using external REST API

余生长醉 提交于 2020-01-23 06:35:07
问题 I would like to write a basic login form, which authenticates users by sending a request to an external REST API. The external API receives the login/password and return 200 (ok) if the credentials are correct. However, I can't implement it via the UserProviderInterface, because the external REST API give me the password in the reply. (I can't fill the user password in the loadUserByUsername method). I found a valid solution here, but it uses classes that have been removed in Symfony 3 :