[lib.channel-controller] fix create [lib.content-controller] do not forget to set UID in 'POST user/token'
This commit is contained in:
parent
4e4d80b7bb
commit
e8c046f315
|
@ -221,7 +221,7 @@ export default class ChannelController{
|
||||||
/* (3) Hide popup */
|
/* (3) Hide popup */
|
||||||
gs.get.popup.hide();
|
gs.get.popup.hide();
|
||||||
|
|
||||||
}, auth.token);
|
}.bind(this), auth.token);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ export default class ContentController{
|
||||||
change_username(username=null){
|
change_username(username=null){
|
||||||
|
|
||||||
/* (1) Error: if invalid user_id */
|
/* (1) Error: if invalid user_id */
|
||||||
if( typeof username !== 'string' || !/^[a-z0-9_-]{3,20}$/i.test(username) )
|
if( typeof username !== 'string' )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* (2) Error: unknown user */
|
/* (2) Error: unknown user */
|
||||||
|
|
|
@ -127,7 +127,7 @@ export default class PopupController{
|
||||||
if( !this.password.is_valid || !this.confirm.is_valid() )
|
if( !this.password.is_valid || !this.confirm.is_valid() )
|
||||||
return false;
|
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();
|
return this.parent.hide();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
<span class='footer form'>
|
<span class='footer form'>
|
||||||
<button @click='gs.popup.hide()'>Cancel</button>
|
<button @click='gs.popup.hide()'>Cancel</button>
|
||||||
<button class='submit' @click='gs.popup.get(`nickname.change`).submit()'>Save</button>
|
<button class='submit' @click='gs.popup.get(`username.change`).submit()'>Save</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue