login issue
This commit is contained in:
parent
b6126fc1b1
commit
b7b116378a
@ -20,6 +20,8 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc
|
||||
$scope.icon = 'fa fa-lock';
|
||||
$scope.show = false;
|
||||
$scope.info = false;
|
||||
|
||||
$scope.loginbutton = true;
|
||||
|
||||
|
||||
$scope.responseData = '';
|
||||
@ -80,6 +82,7 @@ app.controller('loginCtrl', ["$scope", "$http", "API_POINTS", "$state", '$rootSc
|
||||
if($scope.responseData == 'role check')
|
||||
{
|
||||
$scope.Empcheck = true;
|
||||
$scope.loginbutton = false;
|
||||
|
||||
swal("Your OTP is sent !", response.data.message);
|
||||
}
|
||||
@ -276,11 +279,15 @@ $scope.EmpLogin=function(myModel)
|
||||
$scope.place = 'OTP';
|
||||
$scope.icon = 'fa fa-key';
|
||||
$scope.info = true;
|
||||
|
||||
//swal("Your OTP is sent !", response.data.message);
|
||||
}
|
||||
|
||||
else if(response.data.pwdcheck== true)
|
||||
{
|
||||
console.log('in');
|
||||
//console.log('in');
|
||||
|
||||
$scope.loginbutton = true;
|
||||
|
||||
// $scope.Empcheck = true;
|
||||
//$scope.typeInput = 'text';
|
||||
|
||||
@ -404,7 +404,7 @@
|
||||
<div class="form-group" ng-class="{'has-error':Form.password.$dirty && Form.password.$invalid, 'has-success':Form.password.$valid}">
|
||||
|
||||
<span class="input-icon">
|
||||
<input type="password" id="inputPassword3" placeholder="Password" class="form-control heighLight underline" name="password" ng-model="myModel.password"
|
||||
<input type="{{typeInput}}" id="inputPassword3" placeholder="{{place}}" class="form-control heighLight underline" name="password" ng-model="myModel.password"
|
||||
ng-minlength="6" required/>
|
||||
<i style="color: black;" class="{{icon}}"></i>
|
||||
<span class="error text-small block" ng-if="Form.password.$dirty && Form.password.$invalid"> {{place}} Required</span></span>
|
||||
@ -412,15 +412,17 @@
|
||||
|
||||
<div class="form-group">
|
||||
<span ng-if="info == false"><a class="forgot" ui-sref="login.forgot" style="color: black;">I forgot my password </a></span>
|
||||
<span ng-if="info != false" style="color: black;">OTP Sent to your number</span></br>
|
||||
<span ng-if="info != false" style="color: black;">OTP Valid for 10 minutes only</span>
|
||||
<!-- <button type="submit" class="btn btn-warning pull-right submitlogin">
|
||||
Login <i class="fa fa-arrow-circle-right"></i>
|
||||
</button> -->
|
||||
|
||||
|
||||
<div ng-if="loginbutton== true">
|
||||
<button class="btn btn pull-right" ng-click="Login(myModel);" tabindex="8">
|
||||
Login
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user