forms icon indicating copy to clipboard operation
forms copied to clipboard

FR: Extra Area for non-logged-in-users

Open demlak opened this issue 3 years ago • 2 comments

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

demlak avatar Apr 17 '22 20:04 demlak

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... 🤔

jotoeri avatar Apr 24 '22 18:04 jotoeri

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')
                },
        }

demlak avatar Apr 24 '22 20:04 demlak