mirror of
https://github.com/flarum/framework.git
synced 2025-03-04 02:16:25 +08:00
feat(nicknames): allow OAuth to provide a nickname (#4004)
This commit is contained in:
parent
d8faf25383
commit
f51df1c486
@ -57,7 +57,7 @@ app.initializers.add('flarum-nicknames', () => {
|
||||
extend('flarum/forum/components/SignUpModal', 'oninit', function () {
|
||||
if (app.forum.attribute('displayNameDriver') !== 'nickname') return;
|
||||
|
||||
this.nickname = Stream(this.attrs.username || '');
|
||||
this.nickname = Stream(this.attrs.nickname || this.attrs.username || '');
|
||||
});
|
||||
|
||||
extend('flarum/forum/components/SignUpModal', 'onready', function () {
|
||||
|
Loading…
x
Reference in New Issue
Block a user