java - how do i use the information from a deep link url that opens an activity in android? -
i'm sending confirmation email don't know how confirm account when link clicked?
when user click on link send, want extract query string token , compare token token in database. how do this?
thanks guys!
there different approaches! have @ follwing approach:
generate unique random unique string used token
generating random string find reference in question here
store token
in database , send link token attached link query string
.
when user click on link sent, extract the query string token
compare token token in database.
if token matches email validated!!
e.g.suppose generated token
5dti72eo6sfu215dti72eo6sfu
store in database , generate link
mydomain.com?action=validateemail&user=theuser&token=5dti72eo6sfu215dti72eo6sfu
don't forget remove token database , update email verified status!! hope helps.
Comments
Post a Comment