For each User I want to display his invitation status: "Invitation Sent" or "Invitation Accepted"
Currently I just check if a field encrypted_password in Users table contains anything.
If it is not - then a user did not registered (accepted an invitation) yet but it was sent to him (otherwise this user's record would not exist in DB)
Is there a more elegant way to do it?
Yes you should take a
column in user table which contains default value "false". Now you just have to do is when user get registered that time you just change value to "true". when ever you want to check is user registered? just do
this returns true/false