A common interview question for penetration testers is how you might design password storage to allow this 'feature' without having to store the plaintext password. It's possible, I guarantee it.
It doesn't sound very easy to me at all. Can you explain in more detail?