Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 17 | Rev 24 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17 Rev 23
Línea 33... Línea 33...
33
                email = String(email.prefix(250))
33
                email = String(email.prefix(250))
34
                AudioServicesPlayAlertSoundWithCompletion(SystemSoundID(kSystemSoundID_Vibrate)) { return }
34
                AudioServicesPlayAlertSoundWithCompletion(SystemSoundID(kSystemSoundID_Vibrate)) { return }
35
            }
35
            }
36
        }
36
        }
37
    }
37
    }
-
 
38
    
-
 
39
    @State private var isProcessing : Bool = false
-
 
40
    
38
    @State private var isValidEmail : Bool = true
41
    @State private var isValidEmail : Bool = true
39
    @State private var isEditingEmail : Bool = false
42
    @State private var isEditingEmail : Bool = false
Línea 40... Línea 43...
40
    
43
    
41
    @State private var password: String = "Cesa2020$" {
44
    @State private var password: String = "Cesa2020$" {
Línea 169... Línea 172...
169
 
172
 
Línea 170... Línea 173...
170
    }
173
    }
171
        
174
        
-
 
175
    private func signin() -> Void
-
 
176
    {
-
 
177
        if isProcessing {
-
 
178
            self.titleAlert = Config.LANG_ERROR_SIGNIN_IN_PROGRESS_TITLE
-
 
179
            self.messageAlert = Config.LANG_ERROR_SIGNIN_IN_PROGRESS_MESSAGE
-
 
180
            self.presentAlert = true
-
 
181
 
-
 
182
            return
-
 
183
        }
172
    private func signin() -> Void
184
        
173
    {
185
        
174
        self.isEditingEmail = false
186
        self.isEditingEmail = false
175
        self.isValidEmail = Validator.checkEmail(email: self.email)
187
        self.isValidEmail = Validator.checkEmail(email: self.email)
Línea 264... Línea 276...
264
                            let now = Date()
276
                            let now = Date()
265
                            let dateFormatter = DateFormatter()
277
                            let dateFormatter = DateFormatter()
266
                            dateFormatter.dateFormat = Constants.FORMAT_DATETIME_SERVICE
278
                            dateFormatter.dateFormat = Constants.FORMAT_DATETIME_SERVICE
267
                            let dateOn = dateFormatter.string(from: now)
279
                            let dateOn = dateFormatter.string(from: now)
Línea -... Línea 280...
-
 
280
                            
-
 
281
                            let userinfo = [
-
 
282
                                "title" : "Nuevo inicio de sesión",
-
 
283
                                "body" : "Bienvenido a 2GetSkills, esperamos que sea muy productivo para su crecimiento",
-
 
284
                                "url" : ""
-
 
285
                            ]
-
 
286
                            
-
 
287
                            
-
 
288
                            NotificationCenter.default.post(name: Constants.NOTIFICATION_NAME_NOTIFICATION_PUSH , object: self, userInfo: userinfo)
-
 
289
                            
-
 
290
                            
268
                            
291
                            
269
                            var userLog = UserLogModel()
292
                            var userLog = UserLogModel()
270
                            userLog.userUuid = appData.userUuid
293
                            userLog.userUuid = appData.userUuid
271
                            userLog.activity = Constants.USER_LOG_ACTIVITY_SIGNIN
294
                            userLog.activity = Constants.USER_LOG_ACTIVITY_SIGNIN