Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 7f7f996

Browse files
Make it clearer to the user that they haven't overridden onLogin/Register (#7237)
1 parent 55d46da commit 7f7f996

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

changelog.d/7237.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
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.

synapse/static/client/login/js/login.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ matrixLogin.password_login = function() {
128128

129129
matrixLogin.onLogin = function(response) {
130130
// clobber this function
131-
console.log("onLogin - This function should be replaced to proceed.");
132-
console.log(response);
131+
console.warn("onLogin - This function should be replaced to proceed.");
133132
};
134133

135134
var parseQsFromUrl = function(query) {

synapse/static/client/register/js/register.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ matrixRegistration.signUp = function() {
113113

114114
matrixRegistration.onRegistered = function(hs_url, user_id, access_token) {
115115
// clobber this function
116-
console.log("onRegistered - This function should be replaced to proceed.");
116+
console.warn("onRegistered - This function should be replaced to proceed.");
117117
};

0 commit comments

Comments
 (0)