mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
18 lines
499 B
JavaScript
18 lines
499 B
JavaScript
|
|
import { UPDATE_AUTH_FORM } from '../../constants/actions';
|
|
|
|
import { requestValidateAuthIdentity } from '../../senders';
|
|
|
|
export const updateForm = (changes) => (dispatch) => dispatch({
|
|
type: UPDATE_AUTH_FORM,
|
|
changes,
|
|
});
|
|
|
|
export const login = () => (dispatch, getState) => {
|
|
const { form } = getState().dialogAuth;
|
|
|
|
const { username, password } = form;
|
|
|
|
const { remote } = window.require('electron');
|
|
requestValidateAuthIdentity(remote.getCurrentWindow().id, username, password);
|
|
};
|