1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-02-21 11:48:50 +00:00

Basic authentication is done.(need refactor)

This commit is contained in:
Rokt33r
2015-05-27 16:42:34 +09:00
parent 3e5fe1284d
commit 092a2f3e8a
22 changed files with 932 additions and 19 deletions

View File

@@ -0,0 +1,19 @@
/* global angular */
angular.module('codexen.states')
.controller('AuthRegisterController', function ($auth, $log) {
var vm = this
vm.isEmpty = function (obj) {
for (var i in obj) if (obj.hasOwnProperty(i)) return false
return true
}
vm.signup = function () {
$auth.signup({
email: vm.email,
password: vm.password,
name: vm.name,
profileName: vm.profileName
}).then(function (data) {
console.log(data)
})
}
})