cookie consent OK

This commit is contained in:
pvincent
2022-12-10 19:36:21 +04:00
parent fc5e1cc4d2
commit a0405e885d
6 changed files with 293 additions and 98 deletions
+15
View File
@@ -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.
*/