Hi Alexander,
There's not need to comment those two pipeline functions, you can add a simple
one instead before the create_user pipeline, something like this should do the
trick:
from django.shortcuts import redirect
def disable_signup(user=None, *args, **kwargs):
if user is None:
return redirect('/signup-is-disabled')
As I said, put that before the create_user, that way you disable signup with
a simple pipeline function while allow signins.
Matías
Excerpts from Alexander Todorov's message of 2014-08-04 09:35:30 -0300:
--
Matías Aguirre (
matias...@gmail.com)