mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-15 02:36:36 +00:00
16 lines
362 B
JavaScript
16 lines
362 B
JavaScript
/* global angular */
|
|
angular.module('codexen')
|
|
.controller('AuthSignInController', function ($auth, $rootScope) {
|
|
var vm = this
|
|
|
|
vm.signIn = function () {
|
|
$auth.login({
|
|
email: vm.email,
|
|
password: vm.password
|
|
}).then(function (data) {
|
|
console.log(data)
|
|
$rootScope.$broadcast('userSignIn')
|
|
})
|
|
}
|
|
})
|