From bb32165e870b0b17de400dc1d031df0a4529aa64 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Wed, 7 Sep 2016 18:26:41 -0400 Subject: [refactor] user is now in bonafide namespace --- www/app/models/account.js | 8 ++++---- www/app/models/dummy_account.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/www/app/models/account.js b/www/app/models/account.js index fa3b981..52fea93 100644 --- a/www/app/models/account.js +++ b/www/app/models/account.js @@ -54,7 +54,7 @@ export default class Account { // returns a promise, fulfill is passed account object // login(password) { - return bitmask.user.auth(this.address, password).then( + return bitmask.bonafide.user.auth(this.address, password).then( response => { if (response.uuid) { this._uuid = response.uuid @@ -69,7 +69,7 @@ export default class Account { // returns a promise, fulfill is passed account object // logout() { - return bitmask.user.logout(this.id).then( + return bitmask.bonafide.user.logout(this.id).then( response => { this._authenticated = false this._address = '@' + this.domain @@ -109,7 +109,7 @@ export default class Account { // returns a promise, fullfill is passed account object // static active() { - return bitmask.user.active().then( + return bitmask.bonafide.user.active().then( response => { if (response.user == '') { return null @@ -140,4 +140,4 @@ export default class Account { // } } -Account.list = [] \ No newline at end of file +Account.list = [] diff --git a/www/app/models/dummy_account.js b/www/app/models/dummy_account.js index bf0391b..99fb662 100644 --- a/www/app/models/dummy_account.js +++ b/www/app/models/dummy_account.js @@ -22,7 +22,7 @@ export default class DummyAccount { login(password) {return this.account.login(password)} logout() { - return bitmask.user.logout(this.address).then( + return bitmask.bonafide.user.logout(this.address).then( response => { this._authenticated = false this._address = '@' + this.domain -- cgit v1.2.3