)
        })
    }
}

var Login = {
    view: function() {
        return m(&quot;form&quot;, [
            m(&quot;input[type=text]&quot;, {
                oninput: function (e) { Auth.setUsername(e.target.value) },
                value: Auth.username
            }),
            m(&quot;input[type=password]&quot;, {
                oninput: function (e) { Auth.setPassword(e.target.value) },
                value: Auth.password
            }),
            m(&quot;button[type=button]&quot;, {onclick: Auth.