From 37aaebbbd8d7f257057a6f2ffbe28b3226d638db Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 5 Dec 2017 14:55:44 +0000 Subject: [PATCH] Clear login form username and password on submission. --- src/EteSyncContext.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EteSyncContext.tsx b/src/EteSyncContext.tsx index f71a29c..f152cc1 100644 --- a/src/EteSyncContext.tsx +++ b/src/EteSyncContext.tsx @@ -116,6 +116,8 @@ export class EteSyncContextInner extends React.Component { return; } + this.setState({password: '', encryptionPassword: ''}); + store.store.dispatch(fetchCredentials(username, password, encryptionPassword, server)); }