title: System redirected to same login page after login in Odoo12
body: <p>I am working on Odoo12. when I log in for odoo then it redirects me on the same login page and all login options available for me. So, the problem is related to redirect. I have tested the code and got that request.params['login_success'] show 'false' value in print. My python code is below.</p>
  
  <pre><code>@http.route(website=True, auth="public")
  def web_login(self, redirect=None, *args, **kw):
      response = super(CustomAuthSignupHome, self).web_login(redirect=redirect, *args, **kw)
      print('Loginnn', request.params['login_success'])
      if not redirect and request.params['login_success']:
          user = request.env['res.users'].browse(request.uid)
          if user.has_group('base.group_user'):
              if user.partner_id.company_type == 'company':
                  redirect = '/dashboard'
              else:
                  redirect = b'/web?' + request.httprequest.query_string
          return http.redirect_with_hash(redirect)
      return response
  </code></pre>
  
  <p>So, anyone can suggest the solution for this problem. </p>
  
  <p>Thanks in advance.</p>