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)
Sun, Jun 30, 9:15 AM
Unknown Object (File)
Wed, Jun 26, 4:11 PM
Unknown Object (File)
Wed, Jun 26, 4:00 PM
Unknown Object (File)
Sun, Jun 23, 10:49 AM
Unknown Object (File)
Sun, Jun 23, 6:17 AM
Unknown Object (File)
Sun, Jun 23, 6:16 AM
Unknown Object (File)
Sun, Jun 23, 2:13 AM
Unknown Object (File)
Sat, Jun 22, 9:08 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
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.