muk-it / muk_web

MuK Odoo Web Modules
GNU Lesser General Public License v3.0
109 stars 232 forks source link

Make your demo server auto login #165

Open GoodERPJeff opened 4 years ago

GoodERPJeff commented 4 years ago
class GoodERPLogin(Home):
    @http.route('/login', type='http', auth="none")
    def login(self, db, login, key):
        return main.login_and_redirect(db, login, key)

You can add this controller in a module and install in your demo database, then user can click "try-demo" and login automatically.

You know, Class name is not important, just change it as you like.