2 ms·
I too am bewildered. Maybe to make it easier to build the form accepting the OTP? Oversight? I can't think of any other reasons.
by mooreds 2y ago
I too am bewildered.
Maybe to make it easier to build the form accepting the OTP? Oversight?
I can't think of any other reasons.
- Vuska 2y agoOversight. Frameworks tend to make it easy to make an API endpoint by casting your model to JSON or something, but it's easy to forget you need to make specific fields hidden.
- ksala_ 2y agoMy best guess would be some form of testing before they added sending the "sending a message" part to the API. Build the OTP logic, the scaffolding... and add a way to make sure it returns what you expect. But yes absolutely wild.
- Alex-Programs 2y agoI assume that whoever wrote it just has absolutely no mental model of security, has never been on the attacking side or realised that clients can't be trusted, and only implemented the OTP authentication because they were "going through the motions" that they'd seen other people implement.