only save password if it is correct
This commit is contained in:
parent
11dcd4c3d5
commit
b117e7ad0c
5 changed files with 13 additions and 9 deletions
|
@ -128,7 +128,7 @@
|
|||
"json-loader": "^0.5.4",
|
||||
"lbry-format": "https://github.com/lbryio/lbry-format.git",
|
||||
"lbry-redux": "lbryio/lbry-redux#a2be979986dc93be4c2c596846109f5394f64fa1",
|
||||
"lbryinc": "lbryio/lbryinc#4cb26d81849a6c36cab0d7770f1ed87497f66ccf",
|
||||
"lbryinc": "lbryio/lbryinc#dd4d01b42b3d7dc00ce9d137bf078e1b09ac4d37",
|
||||
"lint-staged": "^7.0.2",
|
||||
"localforage": "^1.7.1",
|
||||
"lodash-es": "^4.17.14",
|
||||
|
|
|
@ -136,8 +136,9 @@ export default function ClaimList(props: Props) {
|
|||
))}
|
||||
</ul>
|
||||
)}
|
||||
|
||||
{urisLength === 0 && !loading && <div className="card main--empty empty">{empty || __('No results')}</div>}
|
||||
{urisLength === 0 && !loading && (
|
||||
<div className="card--section main--empty empty">{empty || __('No results')}</div>
|
||||
)}
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ const select = state => ({
|
|||
});
|
||||
|
||||
const perform = dispatch => ({
|
||||
getSync: password => dispatch(doGetSync(password)),
|
||||
getSync: (password, cb) => dispatch(doGetSync(password, cb)),
|
||||
setClientSetting: (key, value) => dispatch(doSetClientSetting(key, value)),
|
||||
signOut: () => dispatch(doSignOut()),
|
||||
});
|
||||
|
|
|
@ -8,7 +8,7 @@ import usePersistedState from 'effects/use-persisted-state';
|
|||
import I18nMessage from 'component/i18nMessage';
|
||||
|
||||
type Props = {
|
||||
getSync: (?string) => void,
|
||||
getSync: (?string, (any) => void) => void,
|
||||
getSyncIsPending: boolean,
|
||||
email: string,
|
||||
passwordError: boolean,
|
||||
|
@ -21,8 +21,11 @@ function SyncPassword(props: Props) {
|
|||
const [rememberPassword, setRememberPassword] = usePersistedState(true);
|
||||
|
||||
function handleSubmit() {
|
||||
setSavedPassword(password, rememberPassword);
|
||||
getSync(password);
|
||||
getSync(password, error => {
|
||||
if (!error) {
|
||||
setSavedPassword(password, rememberPassword);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
@ -7110,9 +7110,9 @@ lbry-redux@lbryio/lbry-redux#a2be979986dc93be4c2c596846109f5394f64fa1:
|
|||
reselect "^3.0.0"
|
||||
uuid "^3.3.2"
|
||||
|
||||
lbryinc@lbryio/lbryinc#4cb26d81849a6c36cab0d7770f1ed87497f66ccf:
|
||||
lbryinc@lbryio/lbryinc#dd4d01b42b3d7dc00ce9d137bf078e1b09ac4d37:
|
||||
version "0.0.1"
|
||||
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/4cb26d81849a6c36cab0d7770f1ed87497f66ccf"
|
||||
resolved "https://codeload.github.com/lbryio/lbryinc/tar.gz/dd4d01b42b3d7dc00ce9d137bf078e1b09ac4d37"
|
||||
dependencies:
|
||||
reselect "^3.0.0"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue