summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/android/assets/www/js/lib/auth/LoginView.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-08-31 22:37:03 +0200
committerJules Laplace <julescarbon@gmail.com>2020-08-31 22:37:03 +0200
commitd22d51a1ae49680015326857360eb699f31efced (patch)
tree43ac5007de26848f516b37b863daeb77f86d97d2 /StoneIsland/platforms/android/assets/www/js/lib/auth/LoginView.js
parenta81d20bc18d002623fc24cdcea8df7eed6d85bc9 (diff)
NO MORE ANDROID BUILD
Diffstat (limited to 'StoneIsland/platforms/android/assets/www/js/lib/auth/LoginView.js')
-rwxr-xr-xStoneIsland/platforms/android/assets/www/js/lib/auth/LoginView.js58
1 files changed, 0 insertions, 58 deletions
diff --git a/StoneIsland/platforms/android/assets/www/js/lib/auth/LoginView.js b/StoneIsland/platforms/android/assets/www/js/lib/auth/LoginView.js
deleted file mode 100755
index 4927bea2..00000000
--- a/StoneIsland/platforms/android/assets/www/js/lib/auth/LoginView.js
+++ /dev/null
@@ -1,58 +0,0 @@
-var LoginView = FormView.extend({
-
- el: "#login",
-
- action: sdk.account.login,
-
- events: {
- "click .newuser": "new_user",
- "click .forgotpassword": "forgot_password",
- "submit form": "save",
- },
-
- initialize: function(){
- this.$form = this.$(".form")
- this.$msg = this.$(".msg")
- this.scroller = ScrollFactory('#login', app.iscroll_options)
- },
-
- show: function(){
- if (auth.logged_in()) {
- app.router.go("intro")
- return
- }
- var msg = "* Your personal and payment<br>information will always remain private"
- app.footer.show("SUBMIT")
- this.$("input").val("")
- this.$msg.html(msg)
- document.body.className = "login"
- },
-
- new_user: function(){
- app.router.go("account/signup")
- },
-
- forgot_password: function(){
- window.open("https://www.stoneisland.com/yTos/Plugins/AreaLocalizer/Redirectarea?area=Account&controllerName=User&actionName=Index", '_system')
- },
-
- validate_presence: {
- "Email": "Please enter a valid email address.",
- "Password": "Please enter your password.",
- },
-
- success: function(data){
- console.log(data)
- app.account.logged_in(null, "store")
- },
-
- error: function(data){
- this.$msg.html("There was an error logging you in. Bad password?")
- this.$msg.addClass('alert-notice')
- },
-
- cancel: function(){
- auth.deferred_product = null
- },
-
-})