Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1116305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:16:56+00:00 2026-05-17T03:16:56+00:00

I have an issue in my app where the change my password functionality has

  • 0

I have an issue in my app where the “change my password” functionality has reset ALL user’s password to the same value. I restored a backup, so no major problems, apart from this awful bug through no fault other than my own.

Obviously this was due to the WHERE condition in the UPDATE statement having no value. This was via an active record query in CodeIgniter. To avoid this issue there was a safeguard in place:

if( !is_numeric($userdata['client_id']) ) die('could not retrieve user ID from session');

A typeof($userdata['client_id']) tells me this is a “string” so my is_numeric check should have worked fine. the $userdata array comes from the session.

There are no users with client_id 0, they all have a number value.

I thought this could have occurred through the user accessing the “change password” page, waiting till the session logged him out after X minutes and then submitting the form. I tried this myself and it just redirects me back to the login page, as it should.

My WHERE statement tries to match the $userdata['client_id'] against a client_id_fk value. One or two test clients have a client_id_fk of NULL – could such a test client resetting their password have caused this?

If not, I’m stumped. Anyone?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T03:16:57+00:00Added an answer on May 17, 2026 at 3:16 am

    My first guess would be that $userdata['client_id'] was null and is_numeric() is (misleadingly) returning true?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have same issue as explained in this question: Where can I change the
I have an issue with my app when starting an SimpleBaseGameActivity from another SimpleBaseGameActivity
I have one issue with Default Google Map app in our phone. I m
I have an issue with using the following code in my CakePHP app. In
I have an issue with NSRange that is causing my app to crash when
I have a strange issue with a MVC 3 app running as an Azure
Here's the issue: I have a list of App names that I want to
I have a strange issue . I am currently working on a mail app
I have a jQueryMobile site/app where performance is an issue. I am reading a
I am creating a Node.js app on Heroku and have run into an issue.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.