Show login first on invitation form

I use invitations as a link to a topic, while adding people to the right groups, using a simple patch.

Logged in users will be silently added to the group and redirected to the topic.

Unfortunately non logged in users will be invited to create a new account, since the button “Log me in. I allready have an account.” follows the form.

I would like to move this button up:

Is this possible by adding some css?

Should this be a standard feature of discourse?

1 Like

Hey @thoka :wave:
It wouldn’t be possible with CSS. You’d need to override the modal template.

https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648#overriding-discourse-templates-23

Also, know that the modal will be removed in the future as we intend to have a dedicated registration/login page instead. :slight_smile:


See below :point_down:

2 Likes

Does this topic help?

3 Likes

Thanks! I don’t know if it worked for @thoka, but the CSS worked for me at the start but then it no longer did. When it didn’t I added a JS but now the JS isn’t working and I’m using CSS but the CSS is far from perfect nor is it positioned exactly where I need it to be.

Ah, some things may have changed in one of the updates to the page.

You may get more attention if you create a Dev topic for some advice on what code changes you need to get it working as you’d like again. :+1: