webengine/osswebengine/WebCore/platform/symbian/FormFillController.cpp
branchRCL_3
changeset 47 e1bea15f9a39
parent 38 4917f9bf7995
child 48 79859ed3eea9
equal deleted inserted replaced
46:30342f40acbf 47:e1bea15f9a39
   245                         // we first check the black list, don't bother the user with
   245                         // we first check the black list, don't bother the user with
   246                         // queries if the realm is in black list
   246                         // queries if the realm is in black list
   247                         if (!m_passwdDB->saveAllowed(realm))
   247                         if (!m_passwdDB->saveAllowed(realm))
   248                             ignorefield = true;
   248                             ignorefield = true;
   249 
   249 
       
   250                         // check if username, password value is missing
       
   251                         if(!passwd->value() || !input->value())
       
   252                             ignorefield = true;
       
   253 
   250                         // if login info is already saved, don't save again
   254                         // if login info is already saved, don't save again
   251                         if (!ignorefield && m_passwdDB->contains(realm, input->name(), input->value(), passwd->name(), passwd->value())) {
   255                         if (!ignorefield && m_passwdDB->contains(realm, input->name(), input->value(), passwd->name(), passwd->value())) {
   252                             ignorefield = true;
   256                             ignorefield = true;
   253                             onePasswdSaved = true;
   257                             onePasswdSaved = true;
   254                         }
   258                         }