-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,17 @@ | |
{ "key": "Username", "optional": true } | ||
] | ||
}, | ||
{ | ||
"command": "account.ChangeEmail", | ||
"chain": "authenticated", | ||
"ctor": ["Account","Email"], | ||
"crudNature": "update", | ||
"title": "Change email", | ||
"fields": [ | ||
{ "key": "Account", "hideIfDefaultValue": true }, | ||
{ "key": "Email", "placeholder": "[email protected]", "optional": true } | ||
] | ||
}, | ||
{ | ||
"command": "account.ChangeDescription", | ||
"chain": "authenticated", | ||
|
@@ -119,6 +130,7 @@ | |
{ "key": "Title", "placeholder": "Reddit", "optional": true, "help": "If you don`t specify this, then URL is required" }, | ||
{ "key": "Url", "placeholder": "https://www.reddit.com/", "title": "URL", "optional": true, "help": "If you don`t specify this, then Title is required" }, | ||
{ "key": "Username", "placeholder": "[email protected]", "optional": true }, | ||
{ "key": "Email", "optional": true, "help": "If your account has username AND email, specify it here. If the account uses email as username, then write email in username." }, | ||
{ "key": "Password", "type": "password", "optional": true }, | ||
{ "key": "PasswordRepeat", "placeholder": "(optional, to prevent typos)", "title": "Repeat password", "type": "password", "optional": true } | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -236,19 +236,23 @@ func addAccount(t *testing.T, tc *testContext) { | |
domain.NewAccountUrlChanged(testAccId, "https://google.com/", ehevent.Meta(t0, joonasUid))) | ||
|
||
tc.appendAndLoad( | ||
domain.NewAccountUsernameChanged(testAccId, "[email protected]", ehevent.Meta(t0, joonasUid))) | ||
domain.NewAccountUsernameChanged(testAccId, "joonas.fi", ehevent.Meta(t0, joonasUid))) | ||
|
||
tc.appendAndLoad( | ||
domain.NewAccountEmailChanged(testAccId, "[email protected]", ehevent.Meta(t0, joonasUid))) | ||
|
||
tc.appendAndLoad( | ||
domain.NewAccountDescriptionChanged(testAccId, "Notes for account\nLine 2", ehevent.Meta(t0, joonasUid))) | ||
|
||
assert.EqualJson(t, tc.user.accounts[testAccId].Account, `{ | ||
"Created": "2020-02-20T14:02:00Z", | ||
"Description": "Notes for account\nLine 2", | ||
"Email": "[email protected]", | ||
"FolderId": "root", | ||
"Id": "accId1", | ||
"Title": "google.com", | ||
"Url": "https://google.com/", | ||
"Username": "joonas@example.com" | ||
"Username": "joonas.fi" | ||
}`) | ||
} | ||
|
||
|
2182421
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implements #107