This repository has been archived by the owner. It is now read-only.

Include "has_verified_email" flag in IdentityJsonTemplate. #725

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
@buddydvd
Contributor

buddydvd commented Mar 27, 2013

Include has_verified_email flag in IdentityJsonTemplate so that when you make a GET request to /user/<username>/about.json, the JSON response includes the flag that tells whether or not the user has successfully verified their email address.

{
    "kind": "t2",
    "data": {
        "has_mail": false,
        "name": "reddit",
        "is_friend": false,
        "created": 1364192756.0,
        "modhash": "reddit",
        "created_utc": 1364189156.0,
        "link_karma": 1,
        "comment_karma": 0,
        "over_18": false,
        "is_gold": false,
        "is_mod": true,
        "has_verified_email": true,     <------------ this
        "id": "1",
        "has_mod_mail": false
    }
}

The motivation for this change is to encourage users to provide and verify their email address in the event they get a QUOTA_FILLED error from a link submission. API clients may inspect a user's has_verified_email flag to determine whether or not to recommend the user to update their email address.

@Deimos

This comment has been minimized.

Show comment
Hide comment
@Deimos

Deimos Mar 29, 2013

Contributor

Looks good, thanks. I'll merge this in soon. 🐟

Contributor

Deimos commented Mar 29, 2013

Looks good, thanks. I'll merge this in soon. 🐟

@Deimos

This comment has been minimized.

Show comment
Hide comment
@Deimos

Deimos Mar 29, 2013

Contributor

Merged f716aaa

Contributor

Deimos commented Mar 29, 2013

Merged f716aaa

@Deimos Deimos closed this Mar 29, 2013

@buddydvd

This comment has been minimized.

Show comment
Hide comment
@buddydvd

buddydvd Mar 29, 2013

Contributor

Thanks, Deimos!

Contributor

buddydvd commented Mar 29, 2013

Thanks, Deimos!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.