I have implemented social login along with the normal login(Auth).When I 
try to login through the normal login form,it shows invalid login(for the 
registered users).Also,when I login through the other method(social 
login),I am not getting redirected to the index page.I have provided the 
user.html code below:
{{extend 'layout.html'}}

{{=T('Sign Up') if request.args(0) == 'register' else T('Log In') if request
.args(0) == 'login' else T(request.args(0).replace('_',' ').title())}}
<div id="janrainEngageEmbed"></div>
<div class="container">
    <div class="row">
        <div id="web2py_user_form" class="col-lg-6">
        if request.args(0)=='login':
            if not 'register' in auth.settings.actions_disabled:}}

           {{ pass
            if not 'request_reset_password' in auth.settings.

           {{ pass

{{block page_js}}
    <script type="text/javascript">
(function() {
    if (typeof window.janrain !== 'object') window.janrain = {};
    if (typeof window.janrain.settings !== 'object') 
window.janrain.settings = {};

    janrain.settings.tokenUrl = 

    function isReady() { janrain.ready = true; };
    if (document.addEventListener) {
      document.addEventListener("DOMContentLoaded", isReady, false);
    } else {
      window.attachEvent('onload', isReady);

    var e = document.createElement('script');
    e.type = 'text/javascript';
    e.id = 'janrainAuthWidget';

    if (document.location.protocol === 'https:') {
      e.src = 'https://rpxnow.com/js/lib/energymanagement/engage.js';
    } else {
      e.src = 

    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(e, s);
    jQuery("#web2py_user_form input:visible:enabled:first").focus();
{{if request.args(0)=='register':}}
{{elif request.args(0)=='change_password':}}
{{end page_js}}
Enter code here...

When using social login ,it is getting redirected to 
I do not understand).I am doing this for the first time.I have followed the 
instructions in the manual.Please point out where I am doing wrong.Any help 
will be highly appreciated.

- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to