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:
19
src/states/auth/register.js
Normal file
19
src/states/auth/register.js
Normal 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)
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user