From 7e085d7585dd377f8510f972ceac222966737337 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Sun, 12 Jan 2020 14:37:04 -0800 Subject: [PATCH] Rename receive_callback -> login_register_callback. --- frontends/etiquette_flask/templates/login.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontends/etiquette_flask/templates/login.html b/frontends/etiquette_flask/templates/login.html index 75d5f1d..2aec498 100644 --- a/frontends/etiquette_flask/templates/login.html +++ b/frontends/etiquette_flask/templates/login.html @@ -98,7 +98,7 @@ function login_form(event) common.create_message_bubble(message_area, "message_negative", "Fill out the form, yo."); return; } - api.users.login(username, password, receive_callback) + api.users.login(username, password, login_register_callback) } function register_form(event) @@ -113,10 +113,10 @@ function register_form(event) common.create_message_bubble(message_area, "message_negative", "Fill out the form, yo."); return; } - api.users.register(username, display_name, password_1, password_2, receive_callback); + api.users.register(username, display_name, password_1, password_2, login_register_callback); } -function receive_callback(response) +function login_register_callback(response) { response = response["data"]; if ("error_type" in response)