npm-WebDAV-Server icon indicating copy to clipboard operation
npm-WebDAV-Server copied to clipboard

How to display relevant error to user

Open IRus opened this issue 7 years ago • 1 comments

IListUserManager.getUserByName - for example I know that passsword is wrong, or username not exists. Or password expired, etc. How can I show this message in users client?

IRus avatar Dec 07 '18 16:12 IRus

Hello,

I guess you implemented a custom HTTPAuthentication. In the method getUser, you can alter the response with the parameter ctx. But no mechanism is designed yet to explicitly send a custom response for an unauthorized user.

AdrienCastex avatar Jan 12 '19 14:01 AdrienCastex