mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-02 11:46:03 +02:00
- added notifications - added toggle switches - added delete feature - added email verification
19 lines
724 B
JavaScript
19 lines
724 B
JavaScript
angular.module('rallly')
|
|
.controller('VerificationCtrl', function(Event, Notification, $state){
|
|
Event.verify({id : $state.params.id, code :$state.params.code}, function(){
|
|
var notification = new Notification({
|
|
title : 'Email Verified',
|
|
message : 'Your email has been verified. You will now be able to receive email notifications for this event',
|
|
type : 'success',
|
|
timeout : 5000
|
|
});
|
|
}, function(e){
|
|
var notification = new Notification({
|
|
title : 'Verification Failed',
|
|
message : 'Your verification code has expired.',
|
|
type : 'error'
|
|
});
|
|
});
|
|
$state.go('event', { id : $state.params.id });
|
|
|
|
});
|