I am struggling with autologin to a website that has an authentication form built with Angular JS. The form structure looks like this:
<form name="loginForm" class="login-form ng-pristine ng-invalid ng-invalid-required">
<div class="tight-form ng-scope" ng-if="loginMode">
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 78px"><strong>User</strong></li>
<li><input name="username"
class="tight-form-input last ng-pristine ng-invalid ng-invalid-required ng-touched"
required="" ng-model="formModel.user" placeholder="email or username" style="width: 253px" type="text">
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="tight-form ng-scope" ng-if="loginMode">
<ul class="tight-form-list">
<li class="tight-form-item" style="width: 78px"><strong>Password</strong></li>
<li><input name="password" class="tight-form-input last ng-pristine ng-untouched ng-invalid ng-invalid-required"
required="" ng-model="formModel.password" id="inputPassword" style="width: 253px"
placeholder="password" type="password"></li>
</ul>
<div class="clearfix"></div>
</div>
<div class="login-submit-button-row">
<button type="submit" class="btn ng-binding btn-inverse" ng-click="submit();"
ng-class="{'btn-inverse': !loginForm.$valid, 'btn-primary': loginForm.$valid}">Log in</button>
</div>
</form>
I attempted to autologin using JavaScript by creating a bookmark in my browser with the following URL:
javascript:document.getElementsByName('username').item(0).value='MYloginValue';document.getElementsByName('password').item(0).value='MypasswordValues';void(0);
Unfortunately, this method did not work for me. As I am not very familiar with Angular JS, I would appreciate any guidance or assistance. Thank you.