password really hidden? [SOLVED]

Talk about Password fields

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

asherw
Junior
Junior
Posts: 20
Joined: Mar 28th, '09, 17:10

password really hidden? [SOLVED]

Postby asherw » Apr 3rd, '09, 20:37

If your edit screen is similar to your view screen (horizontal - displaying several rows at once), the password you are editing is hidden but the passwords on the rest of the rows are shown (in edit and add mode). Is this a bug? Any quick fix?

Thanks,
Asher

administrator
Site Admin
Site Admin
Posts: 5992
Joined: Jan 7th, '09, 23:18
Contact:

Re: password really hidden?

Postby administrator » Apr 18th, '09, 07:53

Find these lines in DrawTabular() method

Code: Select all

                            }else{
                                    echo $this->nbsp.trim($row[$c]).$this->nbsp;
                            }                                                                 
                            $this->ColClose();


and change them on these:

Code: Select all

                            }else{
                                if($this->GetFieldProperty($c_field_name, "hide", "view") == "true"){
                                    echo $this->nbsp."******".$this->nbsp;
                                }else{
                                    echo $this->nbsp.trim($row[$c]).$this->nbsp;
                                }                               
                            }                                                                 
                            $this->ColClose();


Return to “Field type: "password"”