error msg
This commit is contained in:
		
							parent
							
								
									d446057524
								
							
						
					
					
						commit
						1d02c1d424
					
				| @ -445,3 +445,6 @@ span.dap-small-text.js-scope-desc.noselect { | |||||||
|   color : #808080; |   color : #808080; | ||||||
|   color : rgb(128, 128, 128); |   color : rgb(128, 128, 128); | ||||||
| } | } | ||||||
|  | .error-msg { | ||||||
|  |   color: #FDA748; | ||||||
|  | } | ||||||
|  | |||||||
| @ -61,6 +61,7 @@ | |||||||
|           <p class="code-lasts-text">Code lasts for 15 minutes.</p> |           <p class="code-lasts-text">Code lasts for 15 minutes.</p> | ||||||
|           <input type="hidden" class="js-authn-otp-uuid"> |           <input type="hidden" class="js-authn-otp-uuid"> | ||||||
|           <input class="dap-input js-authn-otp-code form-control" placeholder="XXXX-XXXX-XXXX" maxlength="14"></input> |           <input class="dap-input js-authn-otp-code form-control" placeholder="XXXX-XXXX-XXXX" maxlength="14"></input> | ||||||
|  |           <p class="error-msg"></p> | ||||||
|         </div> |         </div> | ||||||
|         <div class="dap-centered-div dap-space-on-top form-group"> |         <div class="dap-centered-div dap-space-on-top form-group"> | ||||||
|           <label class="js-remember-label dap-normal-text"> |           <label class="js-remember-label dap-normal-text"> | ||||||
|  | |||||||
| @ -311,9 +311,8 @@ $(function () { | |||||||
|       return getAccount(session).then(function () { |       return getAccount(session).then(function () { | ||||||
|         return getGrants(session); |         return getGrants(session); | ||||||
|       }); |       }); | ||||||
|     }, function (err) { |     }, function (error) { | ||||||
|       console.log("oooooooppppps"); |       $('.error-msg').text('Incorrect code'); | ||||||
|       console.log(err); |  | ||||||
|     }); |     }); | ||||||
| 
 | 
 | ||||||
|   }; |   }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user