mirror of
https://github.com/plankanban/planka.git
synced 2025-07-19 13:19:44 +02:00
Initial commit
This commit is contained in:
commit
36fe34e8e1
583 changed files with 91539 additions and 0 deletions
14
client/src/sagas/login/services/login.js
Normal file
14
client/src/sagas/login/services/login.js
Normal file
|
@ -0,0 +1,14 @@
|
|||
import { call, put } from 'redux-saga/effects';
|
||||
|
||||
import { authenticateRequest } from '../requests';
|
||||
import { authenticate, clearAuthenticationError } from '../../../actions';
|
||||
|
||||
export function* authenticateService(data) {
|
||||
yield put(authenticate(data));
|
||||
|
||||
yield call(authenticateRequest, data);
|
||||
}
|
||||
|
||||
export function* clearAuthenticationErrorService() {
|
||||
yield put(clearAuthenticationError());
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue