login

python mechanize handle two parameters with same name

自闭症网瘾萝莉.ら 提交于 2020-02-02 07:00:59
问题 I'm logging into a page where they oddly have a form input called login_email and two form inputs called login_password . I need to set the value of both but the straightforward call form['login_password'] throws an error: File "/Library/Python/2.7/site-packages/mechanize/_form.py", line 3101, in find_control return self._find_control(name, type, kind, id, label, predicate, nr) File "/Library/Python/2.7/site-packages/mechanize/_form.py", line 3183, in _find_control raise AmbiguityError("more

How does Safari know when to prompt user to save password?

这一生的挚爱 提交于 2020-02-01 04:15:17
问题 This related to How does browser know when to prompt user to save password? except mine is specific to Safari. I have a website in which there are two different ways you can log in. The first is the main site in which you have to enter your email, password, and your account's domain. The second way is to actually go to your domain (which is pointing at my server) at which point you're only asked to enter in your email and password. Logging in the second way (two inputs), Safari, Chrome and

How does Safari know when to prompt user to save password?

时光毁灭记忆、已成空白 提交于 2020-02-01 04:14:54
问题 This related to How does browser know when to prompt user to save password? except mine is specific to Safari. I have a website in which there are two different ways you can log in. The first is the main site in which you have to enter your email, password, and your account's domain. The second way is to actually go to your domain (which is pointing at my server) at which point you're only asked to enter in your email and password. Logging in the second way (two inputs), Safari, Chrome and

MySQL: Delete rows that contain a specific parameter and are older then a day [closed]

萝らか妹 提交于 2020-01-30 13:28:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I'm creating a login system for my website, with mysql. It works on a subscription based system. How would I remove all rows with the parameter "premium" equal to "1 DAY", if it's older then a day. I'm trying to run a command like this, in a cron job, that runs once a day. I would

asp.net / MySQL: Access denied for user ''@'localhost' (using password: NO)

血红的双手。 提交于 2020-01-30 02:39:14
问题 I'm a web dev rookie and I'm hoping someone with more experience can help sort this out. I was ambushed by a MySQL upgrade. Background: I have two XP PCs (let's ambitiously call them "web server" and "MySQL server"). I recently built and successfully hosted an asp.net site that drew data from the MySQL db. It's just a site designed for a few local users so they don't have to learn SQL to get data...nothing fancy. So far so good. Problem: This week I installed MySQL on the "web server", and

jsf login times out

青春壹個敷衍的年華 提交于 2020-01-29 08:43:25
问题 Ok simple question. I have a JSF application, containing a login page. The problem is if the user loads the login page, leaves it for a while, then tries to login the session expires and a ViewExpiredException is thrown. I could redirect back to the login when this happens, but that isn't very smooth. How can I allow this flow to properly login without an additional attempt? 回答1: Update As of Mojarra 2.1.19 / 2.2.0 you can now set the transient attribute of the <f:view> to true: <f:view

C# Left-Hand Side Of An Assignment Must Be a Variable, Property or Indexer

僤鯓⒐⒋嵵緔 提交于 2020-01-28 10:25:30
问题 I couldn't really find posts that answered this specific scenario. Plus maybe I am just really tired. Anyway, I am working on a login authentication for WinForms. I have a class named DBFunctions.cs which hold database connection info etc. I am stuck with this "The left-hand side of an assignment must be a variable, property or indexer" error in C#. Please find my current code below. Thanks in advance. namespace emsdashboard { public partial class Login : Form { public Login() {

How to do logins using the WinHttpRequest COM?

一曲冷凌霜 提交于 2020-01-28 07:56:31
问题 You can see lots of people automating things on websites using mouseclick and keystroke simulation on browser windows or using the IE COM, but for some applications you don't want your application to take hundrets of megabytes of RAM and use loads of CPU power to render the website etc. So the question is: How to do logins to websites / webservices using AutoHotkey without a browser but using the WinHttpRequest COM? 回答1: I already posted this on the AHK forums, but I think the information is

Simple username password code in android not working [duplicate]

孤街浪徒 提交于 2020-01-26 04:55:34
问题 This question already has answers here : String comparison - Android (16 answers) Closed 2 years ago . In android studio im making a simple username and password code that toasts something if both the values in the username and password edit text views are certain values ("cake" and "robot" for instance) however when I test it and enter the correct username and password values im being told that I have entered the wrong match? Here is the main activity public class MainActivity extends

How to programmatically log into a website?

此生再无相见时 提交于 2020-01-25 21:18:28
问题 I have looked at multiple examples on stackoverflow and cannot get it to work. This is the url I need to log into programmtically: http://powerschool.fortschools.org/public/ I have tried many different ways but am unsuccessfully. Heres what I have currently: Original Url before logging in: http://powerschool.fortschools.org/public/ Url after logging in: http://powerschool.fortschools.org/guardian/home.html Form I think is submitted before login: <form action="/guardian/home.html" method="post