kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
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!142merge-requests/155/head
commit
fb9ab8b191
|
@ -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);
|
||||
|
|
Ładowanie…
Reference in New Issue