2021-02-17 17:40:12 +00:00
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
2021-02-22 20:27:58 +00:00
|
|
|
const userCreationForm = document.querySelector('#user-creation-form');
|
|
|
|
if (userCreationForm) {
|
|
|
|
userCreationForm.addEventListener('save', event => {
|
|
|
|
if (event.originalTarget.id == 'user-creation-form') {
|
|
|
|
document.querySelector("sib-auth").login();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2021-02-17 17:40:12 +00:00
|
|
|
});
|