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)
Mon, Nov 4, 11:26 PM
Unknown Object (File)
Sun, Oct 27, 9:48 PM
Unknown Object (File)
Sun, Oct 27, 9:48 PM
Unknown Object (File)
Sun, Oct 27, 9:48 PM
Unknown Object (File)
Sun, Oct 27, 9:48 PM
Unknown Object (File)
Sun, Oct 27, 9:36 PM
Unknown Object (File)
Thu, Oct 24, 4:08 PM
Unknown Object (File)
Thu, Oct 24, 7:12 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.