Email And Password Check

0 views
Skip to first unread message

Barb Magario

unread,
Aug 5, 2024, 12:27:07 AM8/5/24
to diztipiran
Abreach" is an incident where data has been unintentionally exposed to thepublic. Using the 1Password password managerhelps you ensure all your passwords are strong and unique such that a breach of one servicedoesn't put your other services at risk.

A paste is information that has been published to apublicly facing website designed to share content and is often an early indicator of a databreach. Pastes are automatically imported and often removed shortly after having beenposted. Using the 1Password password managerhelps you ensure all your passwords are strong and unique such that a breach of one servicedoesn't put your other services at risk.


You've just been sent a verification email, all you need to do now is confirm youraddress by clicking on the link when it hits your mailbox and you'll be automaticallynotified of future pwnage. In case it doesn't show up, check your junk mail and ifyou still can't find it, you can always repeat this process.


I've been trying all day to change my email address associated with my Adobe account, using Firefox, my default browser. I am able to access my acct (old e-address), make changes in account, but then the screen displays:


Required Password Reset: To protect the security of your account, you must reset your password. Please check your inbox for an email we just sent you with instructions for how to reset your password and log into your account.


All of us were required to change our password. If you find this a headache then simply add 01 after your old password to get rid of the screen message. Effectively your new password become: "something01" instead of "something" You get the idea what I mean.


Thanks, Dave. I think your link helped to solve my problem. Now that I have a new password, I'd like to ask this: Is making changes to your account so difficult for others? I ask because changing my password wasn't even the reason I was accessing my Adobe account.


And all this so that I can prepare to purchase Adobe XI and have all communication between Adobe and me at that (currently) #2 address, which is the one I use for almost everything, and to keep all my receipts, software and hardware correspondence, and oh everything.


Stack Overflow is for "professional and enthusiast programmers." With respect, you've shown us code in your question that isn't even close to being worthy of either name. It's grossly insecure, and if you put it on the public internet, your site will be cracked by cybercriminals.


StackOverflow people don't have much of a sense of humor about bad security code. You get strong reactions to code like yours because, well, Equifax, and Ashley Madison, and Adobe, and all the rest of the places that have been cracked by cybercriminals. Why do we jump on you? Because we don't like cybercriminals and we don't want to make life easy for them. Friends don't let friends do bad password security. Friends don't show friends grossly insecure password-validation code.


This sequence is futureproof, because it can rehash passwords later if the old hashing method gets too easy for cybercreeps to crack. Many user accounts have lifetimes far longer than versions of packages like php.


For credentials like passwords to remain secret, you must use https, not http, to connect between browser and server. Otherwise cybercriminals can intercept the traffic from your user to your server and grab her password. It can be a pain in the xxx neck to rig up an https-enabled server, but it's a critical part of deploying a web application. (Services like Heroku allow you to test your apps with https easily.)


You call the query with mysqli_query() but you try to fetch results with mysql_fetch_assoc(). You can't mix these different APIs. The mysql_* functions will not use the connection you opened with mysqli_connect(), and vice-versa. Pick one MySQL extension and stick with it.


You don't want that. You want to avoid putting the plaintext password in the SQL query. Just search on the username, and fetch the stored password and then compare what you fetch to the user input password.


I know you said you don't care about your SQL injection vulnerability, but this is like being an electrician and saying you don't care that your electrical panel is stuffed with oily rags. Be sure to post your disregard for safety on your LinkedIn profile, so employers know who to avoid.


There's no need to select both the username and password column. If there is a match, they will always be the same as $un and $pw, which you already have. You're only checking whether the username and password are correct or not, so selecting a single column is good enough. Preferably the user id, but only the username will be sufficient.


This will pose other problems, because you cannot use header() to redirect the user after echo'ing your tag (you will get a "headers already sent" error). If you want the Javascript alert, perform the redirect with Javascript as well. Also, that $message variable is rather useless, you might as well put the message directly into the alert:


The main lesson here should be: when you're developing and it doesn't work, always check the error logs to see if it contains any hints and turn on PHP's error reporting features so you can see what you did wrong right in your browser.


I would like to have my script verify that an email password is correct before proceeding with the rest of the script. I'm sure it's just a simple loop, but I can't think of an easy way to do it. Right now my script is:


Because handling the error closer to the error source and acting accordingly should (is?) considered best practice.Also, considering you kept Password was incorrect outside of the function call you should probably keep the positive output close as well (always keep similar outputs close to each other).


So handle the error in passwordcheck and deal with the return code of the function istead.

This is probably not a typical question for SO since there's nothing wrong with your initial code there for this is more a code review come to think of it.


It looks like when the user did not even tap the username or password text fields, the email and password strings are null. But if the user types something (therefore changing the email and password strings) and then erases what he typed, the strings won't be null, they will be equal to the empty string "", which is different from null. Therefore, your control flow will jump straight to the last else you have there, which is not what you want.


Consider adding checks for when email.isEmpty or when password.isEmpty to capture these events, or initializing your email and password strings to "" in the first place. This way you make sure they won't be null, and you just have to replace email == null by email.isEmpty and password == null by password.isEmpty in your code and everything should work fine.


If you don't have an alternate email address or cannot access the email account you used to create your Google Account, you can reset your Google Account after 24 hours by answering the security question for password recovery.


MOTOROLA, the Stylized M Logo, MOTO and the MOTO family of marks are trademarks of Motorola Trademark Holdings, LLC. LENOVO is a trademark of Lenovo. All other trademarks are the property of their respective owners.


Expedited shipping: Some orders with multiple products and with anticipated inventory won't be available for Expedited shipping, if you don't see the option at checkout, your order will be sent with normal ground delivery


Theoretical max speeds based on 5G mmwave technology and eight channel carrier aggregation (8cc). Actual speeds vary based on many factors including network configuration, signal strength, network congestion, physical obstructions, and weather. 5G network coverage (available in certain areas in 2020, expanding after that).


* Exclusions and limitations apply. Please read the terms and conditions for details that include exclusions, limitations, how to make a claim, cancel coverage, and list of coverage providers. For a complete list of exclusions, read the detailed terms and conditions here.


I'm currently using wp_signon() to check whether the username/password combo works. This works fine when the credentials fail because it returns an error object. But when the credentials are good, it automatcially signs in that user, so my endpoint returns a whole page.


The codex currently doesn't even mention the fact that it automatically logs in the user. It also doesn't appear to accept a parameter to suppress that functionality. For my purposes I simple boolean would be fine.


There IS a function that does exactly what I was trying to do: wp_authenticate($username, $password) HOWEVER, it comes with one drawback. It will automatically set the login cookies which can create problems in a situation like mine. So be careful. This function is not currently in the codex.


The best choice for what I'm doing is wp_authenticate_username_password($user, $username, $password) because it DOESN'T set the login cookies. This function is more documented, but the REALLY important detail that wasn't in the codex is that you can pass NULL as the first parameter. This means you can effectively use it to do exactly like wp_authenticate() without worrying about the cookies getting screwed up. Read the documentation so you don't get confused by the response. It returns a either a WP_User object or a WP_Error (not a boolean!).


$username should validate true by default otherwise a user object would not have been returned if the $username supplied did not match one already existing in the database. Therefore the validation then hinges on the $password variable which stores the form input supplied by the user.


You could then just jump into the 'auth_cookie'-filter inside wp_generate_auth_cookie() and simply set it to null or something else than the SECURE_AUTH_COOKIE or AUTH_COOKIE value. This will then leave you with a senseless cookie, that can't log in.


An accurate and up-to-date email address, and/or phone number ensure you never lose access to your X account. There are a few ways to change your password, and keeping this information up to date simplifies resetting your account or password.

3a8082e126
Reply all
Reply to author
Forward
0 new messages