Mik

Results 24 comments of Mik

Will the following work to have some log in my admin? ``` $login = $sftp->login($this->sftp_user, $this->sftp_pass); if (!$login) { return false; }

I actually had the answer in the Error, it's an Uncaught RuntimeException so I should use a try catch... It's referenced in [the docs](https://phpseclib.com/docs/diagnosis)

If you remove whitelist how do we keep some points without JWT auth? Because by default all custom endpoints are intercepted. I need this feature for user creation, account custom...

It's either we list the points that needs auth or use whitelist if you force it on all points...

We can use `'permission_callback' => '__return_true'` on custom endpoints but for plugins with their own endpoints you force it to them.

> > We can use `'permission_callback' => '__return_true'` on custom endpoints but for plugins with their own endpoints you force it to them. > > That's true, but what's the...

Or maybe that's what you're implying by removing the whitelist: leave public endpoints public

> > I use a plugin that handles password reset with a generated code sent by email that doesn't work without the whitelist, although it has a return true in...

> > bdvs-password-reset > > Cool! I'm the author of that plugin and use it in combination with this one as well, so I'll always be making sure they work...

@sun actually said it already I missed it, my bad, I didn't realize it meant everything whitelisted: `The jwt-auth plugin does not influence whether the user register route is available....