Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • rc/account-app
  • louistw/account-app
  • krish94/self-reg-form
  • dwheel7/self-reg-form
  • dwheel7/feature-reanme-self-reg-app-to-account-app
  • atlurie/account-app
  • dwheel7/account-app
7 results
Show changes
Commits on Source (39)
...@@ -21,7 +21,11 @@ ...@@ -21,7 +21,11 @@
}); });
socket.on( 'account ready', function( msg ) { socket.on( 'account ready', function( msg ) {
window.location.replace('{{ referrer }}'); $('#myModal2 .modal-title').text("Account Creation Successful");
$('#myModal2 .modal-body').text("Redirecting...");
setTimeout(() => {
window.location.replace('{{ referrer }}');
}, 5000);
}); });
socket.on( 'account error', function( msg ) { socket.on( 'account error', function( msg ) {
......
...@@ -128,7 +128,7 @@ def send_msg(event, room): ...@@ -128,7 +128,7 @@ def send_msg(event, room):
Input: Input:
string event, room: string event, room:
Output: Output:
string: emit event to room string: socketio emit function to emit the event to the room
""" """
socketio.emit(event, room=room) socketio.emit(event, room=room)
...@@ -145,7 +145,7 @@ def celery_create_account(msg, session): ...@@ -145,7 +145,7 @@ def celery_create_account(msg, session):
""" """
This function is used to create account for new users This function is used to create account for new users
Input: Input:
msg: json object of all user attributes and session/room json, string: json object of all user attributes and session/room
Output: Output:
gen_f(room): callback to check for success or failure gen_f(room): callback to check for success or failure
""" """
...@@ -182,6 +182,7 @@ def celery_certify_account(msg, session): ...@@ -182,6 +182,7 @@ def celery_certify_account(msg, session):
""" """
This function is used to certify account for existing users This function is used to certify account for existing users
Input: Input:
json, string: json object of all user attributes and session/room
msg: json object of all user attributes and session/room msg: json object of all user attributes and session/room
Output: Output:
gen_f(room): callback to check for success or failure gen_f(room): callback to check for success or failure
......