 class LoginAppsController extends AppController
 
-  KD.registerAppClass this,
-    name         : 'Login'
+  KD.registerAppClass this, name : 'Login'
 
 
   constructor:(options = {}, data)->


    super options, data

  prepareFinishRegistrationForm: (token) ->
    { JPasswordRecovery } = KD.remote.api
    JPasswordRecovery.fetchRegistrationDetails token, (err, details) =>
      view = @getView()

      view.setCustomDataToForm 'finishRegistration', recoveryToken: token
      view.animateToForm 'finishRegistration'


  headBannerShowInvitation: (invite) ->

    view = @getView()
    view.headBannerShowInvitation invite


  setStorageData: (key, value) ->

    @appStorage = KD.getSingleton('appStorageController').storage 'Login', '1.0'
    @appStorage.fetchStorage (storage) =>
      @appStorage.setValue key, value, (err) ->
