diff --git a/functions/handlers/users.js b/functions/handlers/users.js index 203aa58..1ff9298 100644 --- a/functions/handlers/users.js +++ b/functions/handlers/users.js @@ -76,7 +76,8 @@ exports.signup = (req, res) => { handle: newUser.handle, createdAt: newUser.createdAt, userId, - followedTopics: [] + followedTopics: [], + verified: false }; return db.doc(`/users/${newUser.handle}`).set(userCred); }) diff --git a/twistter-frontend/src/pages/user.js b/twistter-frontend/src/pages/user.js index 27a0c94..ef764b3 100644 --- a/twistter-frontend/src/pages/user.js +++ b/twistter-frontend/src/pages/user.js @@ -10,6 +10,8 @@ import Chip from '@material-ui/core/Chip'; import Typography from "@material-ui/core/Typography"; import AddCircle from '@material-ui/icons/AddCircle'; import TextField from '@material-ui/core/TextField'; +import VerifiedIcon from '@material-ui/icons/CheckSharp'; + // component import Userline from '../Userline'; @@ -56,7 +58,8 @@ class user extends Component { .then(res => { this.setState({ profile: res.data.credentials.handle, - imageUrl: res.data.credentials.imageUrl + imageUrl: res.data.credentials.imageUrl, + verified: res.data.credentials.verified ? res.data.credentials.verified : false }); }) .catch(err => console.log(err)); @@ -72,9 +75,9 @@ class user extends Component { render() { const classes = this.props; let profileMarkup = this.state.profile ? ( -
-
loading username...
); +loading username...
); let topicsMarkup = this.state.topics ? (