-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Try adding guest user library #3
base: main
Are you sure you want to change the base?
Conversation
c3e2c5d
to
dc4a661
Compare
@partizipation @goapunk to enable the guest user from the registration form, I would add the maybe_make_guest_user in the a+ DefaultSingUpForm.save(). |
@partizipation the signup template to add the login as guest button is here. But I think the registration form is in a separate story. |
|
||
GUEST_USER = { | ||
"NAME_GENERATOR": "guest_user.functions.generate_uuid_username", # Default option | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed this in the fork of the django-guest, because the long uuid appears on the menu tab and it's ugly. So I switched to the numbered version. But maybe we deploy this one, and PM can let us know.
{% url 'guest_create' as guest_create_url %} | ||
{% with next_param=request.GET.next %} | ||
{% with guest_url=guest_create_url|add:"?next="|add:next_param %} | ||
<p>{% blocktranslate %}Sie wollen als Gast fortfahren? Dann klicken Sie <a href="{{ guest_url }}">hier</a>.{% endblocktranslate %}</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the english version here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Asked Janek for english text yesterday, so waiting to add the content of these pages until I have that and can just do everything at once
{% with next_param=request.GET.next %} | ||
{% with guest_url=guest_create_url|add:"?next="|add:next_param %} | ||
<p> | ||
{% blocktranslate %}Sie wollen als Gast fortfahren? Dann klicken Sie |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
<button class="btn btn--primary btn--secondary-filled" type="submit">{% translate "Continue as Guest" %}</button> | ||
</div> | ||
</form> | ||
{% endblock content %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not add the guest part in the signup template?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean go ahead and add the rest of what's in designs, or are you talking about structuring this differently and making accounts/signup.html multipurpose? or something else
391ad52
to
2ed7317
Compare
we decided to fork django-guest-user and add email and password for the guest authentication. See here
Couldn't get around the circular reference, tried a bunch of things. Code has a bunch of commented out attempts so it's a little messy but maybe this PR helps review.Tried: