Add email and password change functionality for a current user, remove deep compare hooks
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
import { call, put } from 'redux-saga/effects';
|
||||
|
||||
import { authenticateRequest } from '../requests';
|
||||
import { authenticate, clearAuthenticationError } from '../../../actions';
|
||||
import { authenticate, clearAuthenticateError } from '../../../actions';
|
||||
|
||||
export function* authenticateService(data) {
|
||||
yield put(authenticate(data));
|
||||
yield call(authenticateRequest, data);
|
||||
}
|
||||
|
||||
export function* clearAuthenticationErrorService() {
|
||||
yield put(clearAuthenticationError());
|
||||
export function* clearAuthenticateErrorService() {
|
||||
yield put(clearAuthenticateError());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user