Skip to content

Commit 800d7df

Browse files
anoadragon453phil-flex
authored andcommitted
Make it clearer to the user that they haven't overridden onLogin/Register (matrix-org#7237)
1 parent c032017 commit 800d7df

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
@@ -119,8 +119,7 @@ matrixLogin.password_login = function() {
119119

120120
matrixLogin.onLogin = function(response) {
121121
// clobber this function
122-
console.log("onLogin - This function should be replaced to proceed.");
123-
console.log(response);
122+
console.warn("onLogin - This function should be replaced to proceed.");
124123
};
125124

126125
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)