-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #984 from CodingPirates/redirect-user-after-creation
Redirect efter bruger oprettelse
- Loading branch information
Showing
7 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,9 @@ | ||
from django.shortcuts import render | ||
from django.views.decorators.clickjacking import xframe_options_exempt | ||
from django.http import HttpResponse | ||
|
||
|
||
@xframe_options_exempt | ||
def userCreated(request): | ||
if "password" in request.session: | ||
password = request.session.get("password") | ||
del request.session["password"] | ||
else: | ||
return HttpResponse( | ||
"Du kan ikke tilgå adressen direkte. Du skal oprette en bruger for at komme hertil." | ||
) | ||
return render(request, "members/user_created.html", {"password": password}) | ||
next_url = request.GET["next"] if "next" in request.GET else None | ||
|
||
return render(request, "members/user_created.html", {"next_url": next_url}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters