 VerifyPINModal = require 'app/commonviews/verifypinmodal'
 VerifyPasswordModal = require 'app/commonviews/verifypasswordmodal'
 sinkrow = require 'sinkrow'
+KodingSwitch = require 'app/commonviews/kodingswitch'
 
 
 module.exports = class AccountEditUsername extends JView

          name             : "confirmPassword"
          type             : "password"
          label            : 'Password (again)'
      buttons              :
        Save               :
          title            : 'Save Changes'


    {email} = @userInfo
    {nickname, firstName, lastName} = @account.profile
   
    console.log @emailForm
    @emailForm.inputs.email.setDefaultValue Encoder.htmlDecode email
    @emailForm.inputs.username.setDefaultValue Encoder.htmlDecode nickname
    @emailForm.inputs.firstName.setDefaultValue Encoder.htmlDecode firstName
    @emailForm.inputs.lastName.setDefaultValue Encoder.htmlDecode lastName
    @emailForm.inputs.shareLocation.setDefaultValue whoami().shareLocation
    console.log whoami()
    {focus} = kd.utils.parseQuery()
    @emailForm.inputs[focus]?.setFocus()  if focus

