Merge branch 'display_name_registration' into 'develop'

Make display name same as username during registration, fixes #267

Closes #267

See merge request soapbox-pub/soapbox-fe!142
merge-requests/155/head
Alex Gleason 2020-08-30 23:48:00 +00:00
commit fb9ab8b191
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -154,6 +154,7 @@ export function register(params) {
return (dispatch, getState) => {
const needsConfirmation = getState().getIn(['instance', 'pleroma', 'metadata', 'account_activation_required']);
const needsApproval = getState().getIn(['instance', 'approval_required']);
params.fullname = params.username;
dispatch({ type: AUTH_REGISTER_REQUEST });
return dispatch(createAppAndToken()).then(() => {
return api(getState, 'app').post('/api/v1/accounts', params);