Skip to content
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

Allow customised authorUsername in the form #52

Closed
max8hine opened this issue Nov 1, 2019 · 1 comment
Closed

Allow customised authorUsername in the form #52

max8hine opened this issue Nov 1, 2019 · 1 comment

Comments

@max8hine
Copy link

max8hine commented Nov 1, 2019

Current behaviour:

I believe the plugin cant does not change authorUsername in the front-end.

e.g

<input type="hidden" name="authorUsername" :value="user@example.com" />

and authorUsername is defined in plugin in settings.

Desire behaviour:

the guest-entries/save action can take below value

<input type="hidden" name="authorId" :value="userId" />
@max8hine max8hine changed the title Allow defining authorUsername in the form Allow custom authorUsername in the form Nov 1, 2019
@max8hine max8hine changed the title Allow custom authorUsername in the form Allow customised authorUsername in the form Nov 1, 2019
@brandonkelly
Copy link
Member

Guest Entries doesn’t support passing a custom authorUsername value – that’s just something it includes in the response info when submitting over Ajax. That said, if you really want to add support for the form passing its own authorUsername param, you could make that happen by writing a module that hooks into the beforeSaveEntry event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants