mirror of
https://github.com/plankanban/planka.git
synced 2025-07-28 01:29:44 +02:00
Add email and password change functionality for a current user, remove deep compare hooks
This commit is contained in:
parent
e564729598
commit
2566ff376e
67 changed files with 1232 additions and 267 deletions
|
@ -7,8 +7,8 @@ export const createUser = (data) => ({
|
|||
},
|
||||
});
|
||||
|
||||
export const clearUserCreationError = () => ({
|
||||
type: EntryActionTypes.USER_CREATION_ERROR_CLEAR,
|
||||
export const clearUserCreateError = () => ({
|
||||
type: EntryActionTypes.USER_CREATE_ERROR_CLEAR,
|
||||
payload: {},
|
||||
});
|
||||
|
||||
|
@ -27,6 +27,30 @@ export const updateCurrentUser = (data) => ({
|
|||
},
|
||||
});
|
||||
|
||||
export const updateCurrentUserEmail = (data) => ({
|
||||
type: EntryActionTypes.CURRENT_USER_EMAIL_UPDATE,
|
||||
payload: {
|
||||
data,
|
||||
},
|
||||
});
|
||||
|
||||
export const clearCurrentUserEmailUpdateError = () => ({
|
||||
type: EntryActionTypes.CURRENT_USER_EMAIL_UPDATE_ERROR_CLEAR,
|
||||
payload: {},
|
||||
});
|
||||
|
||||
export const updateCurrentUserPassword = (data) => ({
|
||||
type: EntryActionTypes.CURRENT_USER_PASSWORD_UPDATE,
|
||||
payload: {
|
||||
data,
|
||||
},
|
||||
});
|
||||
|
||||
export const clearCurrentUserPasswordUpdateError = () => ({
|
||||
type: EntryActionTypes.CURRENT_USER_PASSWORD_UPDATE_ERROR_CLEAR,
|
||||
payload: {},
|
||||
});
|
||||
|
||||
export const uploadCurrentUserAvatar = (file) => ({
|
||||
type: EntryActionTypes.CURRENT_USER_AVATAR_UPLOAD,
|
||||
payload: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue