summaryrefslogtreecommitdiff
path: root/addons/web/controllers/main.py
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2015-09-23 17:30:00 +0200
committerOlivier Dony <odo@openerp.com>2015-10-01 01:36:50 +0200
commitafa9f4b5fd5cd78336ec27a862dc626f7353ab24 (patch)
tree71643b791ac5904d8f9bd0e4631d7462c8bc46f8 /addons/web/controllers/main.py
parentcea29e0c0176657f094ab80b460be503affe8a1b (diff)
[REM] web: /login route
Only used by web tests (which rely on a module they don't depend on to run, bad!) and altering the test session directly should work, so this endpoint seems completely unnecessary.
Diffstat (limited to 'addons/web/controllers/main.py')
-rw-r--r--addons/web/controllers/main.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/addons/web/controllers/main.py b/addons/web/controllers/main.py
index 8f00d97a254..7b5cebf71e4 100644
--- a/addons/web/controllers/main.py
+++ b/addons/web/controllers/main.py
@@ -565,12 +565,6 @@ class Home(http.Controller):
values['error'] = "Wrong login/password"
return request.render('web.login', values)
- @http.route('/login', type='http', auth="none")
- def login(self, db, login, key, redirect="/web", **kw):
- if not http.db_filter([db]):
- return werkzeug.utils.redirect('/', 303)
- return login_and_redirect(db, login, key, redirect_url=redirect)
-
class WebClient(http.Controller):
@http.route('/web/webclient/csslist', type='json', auth="none")