1
0
Fork 0
mirror of synced 2024-05-20 20:52:36 +12:00

Fixed SDK params

This commit is contained in:
Eldad Fux 2020-03-28 18:12:34 +03:00
parent 2a2f6c1492
commit 6937f751f6
4 changed files with 23 additions and 23 deletions

View file

@ -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>

View file

@ -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;}

View file

@ -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;}

View file

@ -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