Fixed SDK params
This commit is contained in:
parent
2a2f6c1492
commit
6937f751f6
|
@ -26,10 +26,10 @@
|
|||
<input type="hidden" name="secret" data-ls-bind="{{router.params.secret}}">
|
||||
|
||||
<label>Password</label>
|
||||
<input name="passwordA" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="Six or more characters">
|
||||
<input name="password" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="Six or more characters">
|
||||
|
||||
<label>Password Again</label>
|
||||
<input name="passwordB" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="Six or more characters">
|
||||
<input name="passwordAgain" type="password" autocomplete="off" placeholder="" required data-forms-password-meter pattern=".{6,}" title="Six or more characters">
|
||||
|
||||
<button type="submit" class="btn btn-primary"><i class="fa fa-sign-in"></i> Apply</button>
|
||||
</form>
|
||||
|
|
10
public/dist/scripts/app-all.js
vendored
10
public/dist/scripts/app-all.js
vendored
|
@ -40,14 +40,14 @@ return http.patch(path,{'content-type':'application/json',},payload);},createRec
|
|||
if(url===undefined){throw new Error('Missing required parameter: "url"');}
|
||||
let path='/account/recovery';let payload={};if(email){payload['email']=email;}
|
||||
if(url){payload['url']=url;}
|
||||
return http.post(path,{'content-type':'application/json',},payload);},updateRecovery:function(userId,secret,passwordA,passwordB){if(userId===undefined){throw new Error('Missing required parameter: "userId"');}
|
||||
return http.post(path,{'content-type':'application/json',},payload);},updateRecovery:function(userId,secret,password,passwordAgain){if(userId===undefined){throw new Error('Missing required parameter: "userId"');}
|
||||
if(secret===undefined){throw new Error('Missing required parameter: "secret"');}
|
||||
if(passwordA===undefined){throw new Error('Missing required parameter: "passwordA"');}
|
||||
if(passwordB===undefined){throw new Error('Missing required parameter: "passwordB"');}
|
||||
if(password===undefined){throw new Error('Missing required parameter: "password"');}
|
||||
if(passwordAgain===undefined){throw new Error('Missing required parameter: "passwordAgain"');}
|
||||
let path='/account/recovery';let payload={};if(userId){payload['userId']=userId;}
|
||||
if(secret){payload['secret']=secret;}
|
||||
if(passwordA){payload['password']=passwordA;}
|
||||
if(passwordB){payload['passwordAgain']=passwordB;}
|
||||
if(password){payload['password']=password;}
|
||||
if(passwordAgain){payload['passwordAgain']=passwordAgain;}
|
||||
return http.put(path,{'content-type':'application/json',},payload);},getSessions:function(){let path='/account/sessions';let payload={};return http.get(path,{'content-type':'application/json',},payload);},createSession:function(email,password){if(email===undefined){throw new Error('Missing required parameter: "email"');}
|
||||
if(password===undefined){throw new Error('Missing required parameter: "password"');}
|
||||
let path='/account/sessions';let payload={};if(email){payload['email']=email;}
|
||||
|
|
10
public/dist/scripts/app-dep.js
vendored
10
public/dist/scripts/app-dep.js
vendored
|
@ -40,14 +40,14 @@ return http.patch(path,{'content-type':'application/json',},payload);},createRec
|
|||
if(url===undefined){throw new Error('Missing required parameter: "url"');}
|
||||
let path='/account/recovery';let payload={};if(email){payload['email']=email;}
|
||||
if(url){payload['url']=url;}
|
||||
return http.post(path,{'content-type':'application/json',},payload);},updateRecovery:function(userId,secret,passwordA,passwordB){if(userId===undefined){throw new Error('Missing required parameter: "userId"');}
|
||||
return http.post(path,{'content-type':'application/json',},payload);},updateRecovery:function(userId,secret,password,passwordAgain){if(userId===undefined){throw new Error('Missing required parameter: "userId"');}
|
||||
if(secret===undefined){throw new Error('Missing required parameter: "secret"');}
|
||||
if(passwordA===undefined){throw new Error('Missing required parameter: "passwordA"');}
|
||||
if(passwordB===undefined){throw new Error('Missing required parameter: "passwordB"');}
|
||||
if(password===undefined){throw new Error('Missing required parameter: "password"');}
|
||||
if(passwordAgain===undefined){throw new Error('Missing required parameter: "passwordAgain"');}
|
||||
let path='/account/recovery';let payload={};if(userId){payload['userId']=userId;}
|
||||
if(secret){payload['secret']=secret;}
|
||||
if(passwordA){payload['password']=passwordA;}
|
||||
if(passwordB){payload['passwordAgain']=passwordB;}
|
||||
if(password){payload['password']=password;}
|
||||
if(passwordAgain){payload['passwordAgain']=passwordAgain;}
|
||||
return http.put(path,{'content-type':'application/json',},payload);},getSessions:function(){let path='/account/sessions';let payload={};return http.get(path,{'content-type':'application/json',},payload);},createSession:function(email,password){if(email===undefined){throw new Error('Missing required parameter: "email"');}
|
||||
if(password===undefined){throw new Error('Missing required parameter: "password"');}
|
||||
let path='/account/sessions';let payload={};if(email){payload['email']=email;}
|
||||
|
|
|
@ -630,12 +630,12 @@
|
|||
*
|
||||
* @param {string} userId
|
||||
* @param {string} secret
|
||||
* @param {string} passwordA
|
||||
* @param {string} passwordB
|
||||
* @param {string} password
|
||||
* @param {string} passwordAgain
|
||||
* @throws {Error}
|
||||
* @return {Promise}
|
||||
*/
|
||||
updateRecovery: function(userId, secret, passwordA, passwordB) {
|
||||
updateRecovery: function(userId, secret, password, passwordAgain) {
|
||||
if(userId === undefined) {
|
||||
throw new Error('Missing required parameter: "userId"');
|
||||
}
|
||||
|
@ -644,12 +644,12 @@
|
|||
throw new Error('Missing required parameter: "secret"');
|
||||
}
|
||||
|
||||
if(passwordA === undefined) {
|
||||
throw new Error('Missing required parameter: "passwordA"');
|
||||
if(password === undefined) {
|
||||
throw new Error('Missing required parameter: "password"');
|
||||
}
|
||||
|
||||
if(passwordB === undefined) {
|
||||
throw new Error('Missing required parameter: "passwordB"');
|
||||
if(passwordAgain === undefined) {
|
||||
throw new Error('Missing required parameter: "passwordAgain"');
|
||||
}
|
||||
|
||||
let path = '/account/recovery';
|
||||
|
@ -664,12 +664,12 @@
|
|||
payload['secret'] = secret;
|
||||
}
|
||||
|
||||
if(passwordA) {
|
||||
payload['password'] = passwordA;
|
||||
if(password) {
|
||||
payload['password'] = password;
|
||||
}
|
||||
|
||||
if(passwordB) {
|
||||
payload['passwordAgain'] = passwordB;
|
||||
if(passwordAgain) {
|
||||
payload['passwordAgain'] = passwordAgain;
|
||||
}
|
||||
|
||||
return http
|
||||
|
|
Loading…
Reference in a new issue