Page MenuHomePhabricator

Implement function to check whether account has password - currently checking for ethereum validity
ClosedPublic

Authored by marcin on Dec 29 2022, 4:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 1, 1:44 AM
Unknown Object (File)
Sun, Sep 29, 3:40 AM
Unknown Object (File)
Sun, Sep 29, 3:39 AM
Unknown Object (File)
Thu, Sep 26, 3:20 AM
Unknown Object (File)
Mon, Sep 23, 11:22 AM
Unknown Object (File)
Mon, Sep 23, 10:19 AM
Unknown Object (File)
Mon, Sep 16, 10:15 AM
Unknown Object (File)
Tue, Sep 10, 9:03 PM
Subscribers

Details

Summary

This differential implements utility function to check whether an account has password. Currently this operation is logically equivalent to check whether currentUserInfo is null or logged out or represents ethereum account (returns false). returns true otherwise.

Test Plan

Create SIWE account and log return result of this function. Should be false. Then in normal account log the result of this function. Should be true.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Harbormaster returned this revision to the author for changes because remote builds failed.Dec 29 2022, 4:35 AM
Harbormaster failed remote builds in B14909: Diff 20326!
tomek added inline comments.
lib/shared/account-utils.js
80 ↗(On Diff #20326)

Is it possible to create an account with password that has a username that looks like an address?

This revision is now accepted and ready to land.Dec 29 2022, 6:23 AM
lib/shared/account-utils.js
80 ↗(On Diff #20326)

I can't say for sure, but implementation of this function strictly reflects this requirement: https://linear.app/comm/issue/ENG-2541#comment-5b40623e.

Is it possible to create an account with password that has a username that looks like an address?

Currently, yes. ENG-1968 should resolve this.