Auth plugin / password field coding

This is a bit of a shot in the dark

I am writing a new plugin for authentication against the service we use for managing a makerspace (Nexudus, we hate it but it’s what we’ve got for now).

I have built auth + new discourse account/member creation working, with the difficulty that I want a Show/Hide button so users can see their PWs to correct typos apparently Discourse blocks using ‘onclick’.

The soup-to-nuts approach to having better UI here will be to build the plugin to run all the way into the Discourse auth framework with Ember .. a lot of work, but I’ll do it if there’s no other obvious way.

Nexudus doesn’t offer OAuth2, or we’d obv use that.

Thanks if any ideas!

Sadie

Use a proper tracked Ember Component property to keep track of show/hide state and a DButton with an @action to invoke the toggle method. That will avoid the issue you are facing. It’s not that much work, you just need some Ember experience.