Skip to content

Commit

Permalink
feat(nicknames): allow OAuth to provide a nickname (#4004)
Browse files Browse the repository at this point in the history
  • Loading branch information
blt950 authored Oct 22, 2024
1 parent d8faf25 commit f51df1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/nicknames/js/src/forum/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit f51df1c

Please sign in to comment.