summaryrefslogtreecommitdiff
path: root/ui/app/models/dummy_account.js
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2017-02-28 22:12:09 -0600
committerelijah <elijah@riseup.net>2017-02-28 22:12:31 -0600
commit4a5e181138e4ccd324d33426f3903825c178af48 (patch)
treebcaaa8eda80bd783b720e493d9b1919c614903a9 /ui/app/models/dummy_account.js
parentbcfd0c7fd461876d080bca14ed4d038837834f02 (diff)
[bug] correctly determine available services in the ui
Diffstat (limited to 'ui/app/models/dummy_account.js')
-rw-r--r--ui/app/models/dummy_account.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/ui/app/models/dummy_account.js b/ui/app/models/dummy_account.js
deleted file mode 100644
index 99fb6623..00000000
--- a/ui/app/models/dummy_account.js
+++ /dev/null
@@ -1,33 +0,0 @@
-//
-// A proxy of an account, but with a different ID. For testing.
-//
-
-import bitmask from 'lib/bitmask'
-
-export default class DummyAccount {
-
- constructor(account) {
- this.account = account
- }
-
- get id() {
- return 'dummy--' + this.account.address
- }
-
- get domain() {return this.account.domain}
- get address() {return this.account.address}
- get userpart() {return this.account.userpart}
- get authenticated() {return this.account.authenticated}
- get hasEmail() {return this.account.hasEmail}
- login(password) {return this.account.login(password)}
-
- logout() {
- return bitmask.bonafide.user.logout(this.address).then(
- response => {
- this._authenticated = false
- this._address = '@' + this.domain
- return this
- }
- )
- }
-}