skapi-js 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/js/main/skapi.js +1 -1
- package/js/methods/user.js +0 -3
- package/package.json +1 -1
package/js/main/skapi.js
CHANGED
package/js/methods/user.js
CHANGED
|
@@ -404,9 +404,6 @@ export async function signup(form, option) {
|
|
|
404
404
|
});
|
|
405
405
|
let logUser = option?.login || false;
|
|
406
406
|
let signup_confirmation = option?.signup_confirmation || false;
|
|
407
|
-
if (admin_creating_account && signup_confirmation) {
|
|
408
|
-
throw new SkapiError('Admins cannot create an account with "option.signup_confirmation" option.', { code: 'INVALID_PARAMETER' });
|
|
409
|
-
}
|
|
410
407
|
if (params.email_public && !signup_confirmation) {
|
|
411
408
|
throw new SkapiError('"option.signup_confirmation" should be true if "email_public" is set to true.', { code: 'INVALID_PARAMETER' });
|
|
412
409
|
}
|
package/package.json
CHANGED