From 800d7df397ebea63e5204b32f958d96308d162f2 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Thu, 9 Apr 2020 12:38:38 +0100 Subject: [PATCH] Make it clearer to the user that they haven't overridden onLogin/Register (#7237) --- changelog.d/7237.misc | 1 + synapse/static/client/login/js/login.js | 3 +-- synapse/static/client/register/js/register.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) create mode 100644 changelog.d/7237.misc diff --git a/changelog.d/7237.misc b/changelog.d/7237.misc new file mode 100644 index 000000000000..92e67ea31fb9 --- /dev/null +++ b/changelog.d/7237.misc @@ -0,0 +1 @@ +Change log line that told user to implement onLogin/onRegister fallback js functions to a warning, instead of an info, so it's more visible. \ No newline at end of file diff --git a/synapse/static/client/login/js/login.js b/synapse/static/client/login/js/login.js index e05463d1a367..d0b3e7ccc763 100644 --- a/synapse/static/client/login/js/login.js +++ b/synapse/static/client/login/js/login.js @@ -119,8 +119,7 @@ matrixLogin.password_login = function() { matrixLogin.onLogin = function(response) { // clobber this function - console.log("onLogin - This function should be replaced to proceed."); - console.log(response); + console.warn("onLogin - This function should be replaced to proceed."); }; var parseQsFromUrl = function(query) { diff --git a/synapse/static/client/register/js/register.js b/synapse/static/client/register/js/register.js index 959d120d7d47..3547f7be4fee 100644 --- a/synapse/static/client/register/js/register.js +++ b/synapse/static/client/register/js/register.js @@ -113,5 +113,5 @@ matrixRegistration.signUp = function() { matrixRegistration.onRegistered = function(hs_url, user_id, access_token) { // clobber this function - console.log("onRegistered - This function should be replaced to proceed."); + console.warn("onRegistered - This function should be replaced to proceed."); };