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)
Thu, Dec 19, 1:13 AM
Unknown Object (File)
Thu, Dec 19, 12:40 AM
Unknown Object (File)
Wed, Dec 18, 9:47 PM
Unknown Object (File)
Mon, Dec 16, 12:49 AM
Unknown Object (File)
Sat, Nov 30, 6:55 AM
Unknown Object (File)
Sat, Nov 30, 6:55 AM
Unknown Object (File)
Thu, Nov 28, 10:37 PM
Unknown Object (File)
Sun, Nov 24, 2:41 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.