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 8564031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:06:17+00:00 2026-06-11T17:06:17+00:00

I am facing trouble to remove value from password field. When I submit signup

  • 0

I am facing trouble to remove value from password field. When I submit signup form without entering one or more required field then its generate a 32 bit character value on password field.

I want to see this field blank in that case.

With Thanks,

MRS

  • 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-06-11T17:06:18+00:00Added an answer on June 11, 2026 at 5:06 pm

    It’s hard to say without some code, but it sounds like when the form validation fails on signup the form is re-populated (since it’s CActiveForm) with the data from the signup submission – which now includes the password which you have hashed?

    One way to avoid this would be, on form submit, to just clear out the password after the save() or validate() fails. I’m guessing if you have basic Yii code your form post action will look something like this:

    $model->attributes = $_POST['SignupModel'];
    $model->password = cool_hash_function($model->password); // hashing the password - maybe you have this in beforeValidate(), I don't know
    if ($model->save()) {
      $this->redirect('/success!'); // yay! redirect or whatever
    } else {
      $model->password = ''; // if the save failed, clear out the password before re-rendering the form
    }
    $this->render('signup',array('model'=>$model)); // the form will now render without the pw
    

    Yes, the user will need to re-enter their password. There might be other approaches to this depending on where in the process you are hashing the password before saving – and depending if I have come close to guess your actual issue. 🙂

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

Sidebar

Related Questions

I'm facing a trouble with jquery ajax under IE8. I have a form which
Here is some trouble with Facebook API we are facing from last monday. We
I'm facing some trouble writing a regular expression in Java to parse information from
I am facing a lot of trouble while deploying a windows form application on
I am just facing trouble to sort out the query I need. I have
I am working on Linux OS. I am facing trouble parsing & transforming the
Facing some issue in Talend Admin Console, the jobs that are running from IDE
Im facing one problem in streaming data capture for reading the broadcast data during
I am facing trouble with indent and align format of pdf generated in Red
I am using magento 1.4 (wamp) . I am facing trouble to save cms

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.