Closed GoogleCodeExporter closed 9 years ago
Hi,
I did't notice your issues until yesterday (got no notification from the issue
tracker).
The "confirm" action is only meant to be used by the plugin internally to
initiate the confirmation pipeline. So that will not work.
But it is possible to create any form you like so also one that contains
buttons. But it's best to create a form which uses a web2py FORM helper.
What you could do is create a subclass of SocialAuth and override the
social_login() function to return your custom form.
Your form can contain your buttons and you must then use javascript/jquery to
set the "click" events of those buttons to set some hidden input element to the
proper "backend" value and then submit the form.
Anyway it's advisable to use a web2py FORM for this because it's most secure.
You could look at the source code of plugin_social_auth/utils.py to see how the
forms are built and what vars are required.
Sorry but I have not included stuff like this because the UI part is really
something everyone has to decide for themselves. The plugin is about the
mechanics to glue in the python-social-auth module.
Original comment by muijsenb...@gmail.com
on 24 May 2014 at 3:15
[deleted comment]
You know, i'm thinking of including a simple example for how to do this.
Original comment by muijsenb...@gmail.com
on 24 May 2014 at 4:19
Original comment by muijsenb...@gmail.com
on 26 May 2014 at 7:47
I added a button based ui and made it default.
I added some info to the description.
Could you let me know how this works for you?
Original comment by muijsenb...@gmail.com
on 28 May 2014 at 10:11
no response so close this.
Original comment by muijsenb...@gmail.com
on 11 Jul 2014 at 6:00
Original issue reported on code.google.com by
ke...@tourbudy.com
on 14 May 2014 at 8:49