00001
00002
00003
00004
00005
00006
00007
00008
00009 #import "LoginViewController.h"
00010 #import "Moodle.h"
00011
00012 @implementation LoginViewController
00013
00014 @synthesize username;
00015 @synthesize password;
00016
00017 - (void) execute
00018 {
00019 [moodle login:self.username password:self.password];
00020
00021 [views addObject:[NSDictionary dictionaryWithObjectsAndKeys:
00022 @"Logged In", @"title",
00023 [NSString stringWithFormat:@"You are successfully logged in as %@.", username], @"description",
00024 nil]];
00025 }
00026
00027 @end
00028