Probably a stupid question, but while reading RegisterService code i see:
/// Logic to update UserAuth from Registration info, not enabled on OnPut because of security.
public object UpdateUserAuth(Register request)
Why can’t I use PUT in order to update a user? To avoid security issues we’re planning to build a CustomRegisterService that has CurrentPassword as parameter. So we can use it together with username in order to check that user is valid.
Are we missing other security issues?
Moreover existing logic in RegisterService does not allow update of existing users because there is a validator blocking call if UserName already exists.
Thx
Ok I just enabled Register from PUT as well in this commit:
https://github.com/ServiceStack/ServiceStack/commit/c4d2c0ba9d95d7cb7aab9e2171b0f07c1639319a