FR: Extra Area for non-logged-in-users
Is your feature request related to a problem? Please describe. It is not obvious for non-logged-in users, that they are not logged in. Some of them do have an account and they should log in. at the same time, the form should also be accassible for users without account.
Describe the solution you'd like An extra Area for non-logged-in-users with...
- information about the login-status,
- Link to log in, if not logged in (with automaticaly get back to this form, after log-in)
- extra questions/checkboes, that are only seen, when not logged in.. like "[ ] i don't have an account" and "my email-adress is"
thx
Some of them do have an account and they should log in. at the same time, the form should also be accassible for users without account.
Will for now be solved with the new sharing. Will of course need two different links then.
Your solution could indeed be some feature for long term... 🤔
well.. i played with this idea.. and for a start, it's as simple as this: (src/views/Submit.vue)
<p v-if="!form.isAnonymous && !isLoggedIn">you have an Account?</p>
<form v-if="!form.isAnonymous && !isLoggedIn">
<input type="hidden" name="redirect_url" :value="redirectparam">
<button class="primary" type="submit" :formaction="loginurl">Please Log in</button>
</form>
computed: {
loginurl() {
return window.location.protocol + '//' + window.location.host + generateUrl('/login')
},
}