diff options
Diffstat (limited to 'talerbank/app/views.py')
-rw-r--r-- | talerbank/app/views.py | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/talerbank/app/views.py b/talerbank/app/views.py index 4cc509c..e868a4b 100644 --- a/talerbank/app/views.py +++ b/talerbank/app/views.py @@ -446,13 +446,11 @@ def internal_register(request): ## - # This method serves the request for registering a user. - # If successful, it redirects the user to their profile page; - # otherwise it will show again the same form (currently, without - # displaying _any_ error/warning message.) - # - # @param request Django-specific HTTP request object. - # @return Django-specific HTTP response object. +# This method serves the request for programmatically +# registering a user. +# +# @param request Django-specific HTTP request object. +# @return Django-specific HTTP response object. @require_POST def register_headless(request): @@ -918,6 +916,18 @@ def add_incoming(request, user_account): "timestamp": "/Date(%s)/" % int(wtrans.date.timestamp())}) ## +# Serves a headless withdrawal request for the Taler protocol. +# +# @param request Django-specific HTTP request. +# @return Django-specific HTTP response object. +@login_via_headers +@csrf_exempt +@require_POST +def withdraw_headless(request): + pass + + +## # Serve a Taler withdrawal request; takes the amount chosen # by the user, and builds a response to trigger the wallet into # the withdrawal protocol |