summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-09-07 18:26:41 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-09-07 18:26:41 -0400
commitbb32165e870b0b17de400dc1d031df0a4529aa64 (patch)
tree38baf4adaaeeb654d96cff2c9528db5e6073e1e9
parent1e994786fea5daa16d9f384c24fbc2b2a6280291 (diff)
[refactor] user is now in bonafide namespace
-rw-r--r--www/app/models/account.js8
-rw-r--r--www/app/models/dummy_account.js2
2 files changed, 5 insertions, 5 deletions
diff --git a/www/app/models/account.js b/www/app/models/account.js
index fa3b9813..52fea93d 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 == '<none>') {
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 bf0391be..99fb6623 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