cookie consent OK
This commit is contained in:
@@ -30,6 +30,21 @@ class User extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
@tpl("user/cookieConsent.mtt")
|
||||
function doCookieConsent() {
|
||||
App.log("Cookie Consent called!");
|
||||
// if (App.current.user != null) {
|
||||
// throw Redirect('/');
|
||||
// }
|
||||
|
||||
// if its needed to redirect after login
|
||||
if (app.params.exists("redirect")) {
|
||||
view.redirect = app.params.exists("redirect");
|
||||
} else {
|
||||
view.redirect = "/";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Choose which group to connect to.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user