Worklight Disable password save - ibm-mobilefirst

Im trying to disable the "Do you want the browser to remember this password" popup of the webview,
I added the line
this.appView.getSettings().setSaveFormData(false);
In the onCreate, before the loadURL command. But it does suppress the save password info feature.
ADDITION:
This is happening when the user submits their login information in the login form on my app:
<form onsubmit="dojo.byId('passwordLogin').blur();return false;">
<input id="emailAddressLogin" type="email" data-dojo-type="dojox.mobile.TextBox" placeholder="Email Address" value="" selectOnClick="true"></input>
<input id="passwordLogin" type="password" data-dojo-type="dojox.mobile.TextBox" placeholder="Password" value="" selectOnClick="true"></input>
<br/>
<button data-dojo-type="dojox.mobile.Button" type="submit" class="baseBtn navyBtn loginButton" onClick="processLoginAuthentication()">Login</button>
</form>

I believe the following should work:
this.appView.getSettings().setSavePassword(false);

Related

How to stay on the same page after a form submission integrated to a Google form

In my website i have a contact form, and i've integrated it with a Google form. I've added the google form's execute URL as the action URL so once its submitted the form is being populated with the form data. the way i have done it
But when its being submitted, its redirecting to a google form's response page. What i need is once its submitted, to stay on the same page and give an alert. Im not sure how to do this in vue js. Any suggestion will be appreciated.
the content on the redirected page
{"result":"success","data":"{\"name\":[\"sdvsdv\"],\"company\":[\"dsvdv\"]}"}
Form in vue js view
<form method="POST" id="appointment-form" action="https://script.google.com/macros/s/AKfycbzRHvjfmIZdwKnOm26PeFv64OyyyGAfcr68MxvYw/exec">
<div class="form-group">
<input type="text" placeholder="Your name" name="name" class="form-control" id="name" required>
</div>
<div class="form-group">
<input type="text" placeholder="Company name" name="company" class="form-control" id="company" required>
</div>
<buttontype="submit" class="btn btn-default btn-block form-submit-btn">Submit</button>
</form>
After read your code properly, i found many errors.
How are you saving input values?
To save, you have to use ```v-model directive````
I guess you save the input values in somewhere. To avoid your problem, you can add a method and call it on submit, and inside the method save your input values.

VB webbrowser click on html submit form without id

I want to do login to the site http://seafight.com.
This is code of login on the site
</div>
<fieldset class="bgcdw_login_form_login"><div class="bgcdw_input_text bgcdw_login_form_username">
<label for="bgcdw_login_form_username">Nazwa</label>
<input id="bgcdw_login_form_username" name="username" type="text" maxlength="20"></div>
<div class="bgcdw_input_password bgcdw_login_form_password">
<label for="bgcdw_login_form_password">Hasło</label>
<input id="bgcdw_login_form_password" name="password" type="password" maxlength="45"></div>
</div>
<fieldset class="bgcdw_login_form_buttons"><input class="bgcdw_button bgcdw_login_form_login" type="submit" value="Logowanie">
</div>
And this is a piece of code in my app
WebBrowser1.Navigate("http://seafight.com")
WriteLog("Loading Seafight page...")
While WebBrowser1.ReadyState <> WebBrowserReadyState.Complete
Application.DoEvents()
End While
WebBrowser1.Document.GetElementById("username").InnerText = LoginBox.Text
WebBrowser1.Document.GetElementById("password").InnerText = PasswordBox.Text
and I don't know how to click submit button because it doesn't have ID. Any ideas?
I tried
WebBrowser1.Document.GetElementById("submitButton").InvokeMember("click")
and
WebBrowser1.Document.GetElementsByTagName("button, submit etc")
(0 counts with this tag names)

jquery-ui dialog password already filled at open

As wanted, dialog box for login is opened, but password is already filled in, although I put password field with value=""
<div id="dialog" title="Connexion aux données">
<form>
<fieldset class="ui-helper-reset">
<br>
<div>Nom du foyer</div>
<input type="text" name="foyer" id="foyer" value="" class="ui-widget-content ui-corner-all"><br>
<div>Mot de passe</div>
<input type="password" name="password" id="password" value="" class="ui-widget-content ui-corner-all"><br>
<div style="font-size:0.6em;padding-top:6px;">Afficher les caractères</div>
<input type="checkbox" name="reveal" id="reveal" value="" class="ui-widget-content ui-corner-all" style="width:20px;">
</fieldset>
</form>
</div>
and Jquery code in head part
var $dialog = $( "#dialog" )
.dialog({
autoOpen: false,
modal: true,
resizable: false,
draggable: false,
close: function(event,ui) {
$(this).find('form')[0].reset();
}
});
$dialog.dialog('open');
I have also cleaned browser cache but nothing changed.
By clicking on reveal checkbox I saw password is the same I have used in previous dev for testing few months ago.
Why this happens and how to avoid it ?
This happened for me too. After debugging I found out that it was the password that browser had saved and it was loading it onto the password field on page load.
After clearing the saved password, I was able to get the empty password textbox.
This could be the case with you too.

HTMLInputElemet or webbrowser.document on Windows Phone App Login

Hey I'm try to make a Windows Phone app that logs people in to a webpage, but I'm having trouble getting the app to post the log-in info to the webbrowser.
on the desktop I would have used
HTMLInputElement nameBox = (HTMLInputElement) myDoc.all.item("name", 0);
HTMLInputElement passBox = (HTMLInputElement) myDoc.all.item("pass", 0);
nameBox.value = "textBox1.text";
passBox.value = "textBox2.text;
but the HTMLInputElemet don't exist in Windows Phone.
I also tried using webBrowser1.document but that don't work either on Windows Phone.
It is a log-in using a form and not a query string.
The server side code look like this:
<div class="form-item textfield edit-name">
<div class="label">
<label >E-mail-adresse</label>
</div>
<input type="text" maxlength="60" placeholder="" name="name" id="edit-name" size="60" value="" class="form-text required" /> </div>
<div class="form-item password edit-pass">
<div class="label">
<label >Adgangskode</label>
</div>
<input type="password" name="pass" id="edit-pass" maxlength="128" size="60" class="form-text required" /> </div>
<input type="hidden" name="form_build_id" id="form-b6cb750ff3a79c34d408df98d730a39e" value="form-b6cb750ff3a79c34d408df98d730a39e" />
<input type="hidden" name="form_id" id="edit-user-login" value="user_login" />
<div class="form-actions"><input type="submit" name="op" id="edit-submit" value="Log ind" class="form-submit" />
It is easy in the desktop but I just cant figure out how to do this on the Phone, hope some one can help.
One way to access the fields is using Javascript, thanks to the InvokeScript method:
webBrowser1.InvokeScript("eval", string.Format("document.getElementsByName('name')[0].value='{0}'", "PutTheLoginHere"));

Chrome auto-complete the wrong from field

I am using Devise for authentication
In the settings I have 3 fields:
password (for entering a new password)
<input autocomplete="off" class="controls" id="user_password" name="user[password]" size="30" type="password">
password confirmation
<input class="controls" id="user_password_confirmation" name="user[password_confirmation]" size="30" type="password">
current password
<input class="controls" id="user_current_password" name="user[current_password]" size="30" type="password">
I want the current password to be autocompleted but chrome autocomplete the password confirmation for some reason
Is there a way to tell chrome which field is the password field to be autocompleted?
You have set autocomplete="off" only on user_password. Maybe you should set it where you want them to be.