Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let email = $('#reg_email').val();
- let password = $('#reg_password').val();
- let name = $('#reg_firstName').val() + ' ' + $('#reg_lastName').val();
- $.post(server_addr + '/register', {
- name: name,
- email: email,
- password: password
- }, function (data) {
- sendDesktopNotification(data.message, 'You Will Be Logged In Automatically');
- logIn(email, password);
- }).fail(function (error) {
- let msg = JSON.parse(error.responseText)['message'];
- dialog.showErrorBox('Registration Failed!', msg);
- })
Add Comment
Please, Sign In to add comment