Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

steveacalabro/iOS-JSON-Login

Repository files navigation

iOS-JSON-Login

Simple iOS JSON login app and web code

Mysql

The SQL the create the Mysql table is as follows.

CREATE TABLE IF NOT EXISTS `users3` (
  `ID` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(255) NOT NULL,
  `password` varchar(255) NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;

Web App Changes

To use this code simply replace the variables within qoutes with the apprpriate values for your server

$user = "USERNAME";
$pass = "PASSWORD";
$database = "DATABASE";
$salt = "SALT";

App Changes

To use the iOS App change the following lines of code respectively

NSString *salt = @"YOURSALT";
NSString *url = [NSString stringWithFormat: @"http://YOURSERVERURL/login.php?username=%@&password=%@", test_username, test_password];

About

iOS JSON Login Application and Web App

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published