diff --git a/webpack/lib/channel-controller.js b/webpack/lib/channel-controller.js index 755fca9..3fc054d 100644 --- a/webpack/lib/channel-controller.js +++ b/webpack/lib/channel-controller.js @@ -221,7 +221,7 @@ export default class ChannelController{ /* (3) Hide popup */ gs.get.popup.hide(); - }, auth.token); + }.bind(this), auth.token); return true; diff --git a/webpack/lib/content-controller.js b/webpack/lib/content-controller.js index c1e6649..dc880a7 100644 --- a/webpack/lib/content-controller.js +++ b/webpack/lib/content-controller.js @@ -77,7 +77,7 @@ export default class ContentController{ change_username(username=null){ /* (1) Error: if invalid user_id */ - if( typeof username !== 'string' || !/^[a-z0-9_-]{3,20}$/i.test(username) ) + if( typeof username !== 'string' ) return false; /* (2) Error: unknown user */ diff --git a/webpack/lib/popup-controller.js b/webpack/lib/popup-controller.js index 941e891..28fd2ed 100644 --- a/webpack/lib/popup-controller.js +++ b/webpack/lib/popup-controller.js @@ -127,7 +127,7 @@ export default class PopupController{ if( !this.password.is_valid || !this.confirm.is_valid() ) return false; - if( gs.get.content.change_password(this.data.password.mutable) ) + if( gs.get.content.change_password(this.password.mutable) ) return this.parent.hide(); } diff --git a/webpack/vue/auth/wrapper.vue b/webpack/vue/auth/wrapper.vue index 24b6bf0..3bb222a 100644 --- a/webpack/vue/auth/wrapper.vue +++ b/webpack/vue/auth/wrapper.vue @@ -66,7 +66,7 @@ - +