I have successfully subclassed the PFUser
. PFUser
has username
and email
properties.
What I would like to do is, accept an email for the username
, and when the username
is set, set the email
property to username
as well.
So I am trying to override the username
property, so that I can update the email
property accordingly. Below is what I have, which doesn't work :(. Any pointers please?
override public var username: String? {
didSet {
super.email = username
}
}
(Note: PFUser
is a class in Parse.com)
Thanks in advance.