MAJOR: Updates for Authenticated Web UI and CLI #30
| @ -132,8 +132,7 @@ function doConfigure() { | |||||||
|   appData.init.otp = telebitState._otp; |   appData.init.otp = telebitState._otp; | ||||||
| 
 | 
 | ||||||
|   return Telebit.authorize(telebitState, showOtp).then(function () { |   return Telebit.authorize(telebitState, showOtp).then(function () { | ||||||
|     console.log('1 api.init...'); |     return changeState('status'); | ||||||
|     return api.initialize(); |  | ||||||
|   }); |   }); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| @ -421,8 +420,7 @@ api.config().then(function (config) { | |||||||
|     setState(); |     setState(); | ||||||
|     // this will skip ahead as necessary
 |     // this will skip ahead as necessary
 | ||||||
|     return Telebit.authorize(telebitState, showOtp).then(function () { |     return Telebit.authorize(telebitState, showOtp).then(function () { | ||||||
|       console.log('2 api.init...'); |       return changeState('status'); | ||||||
|       return api.initialize(); |  | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user