Skip to Main Content
Secure Development for Mobile Apps
book

Secure Development for Mobile Apps

by J. D. Glaser
October 2014
Intermediate to advanced content levelIntermediate to advanced
472 pages
10h 44m
English
Auerbach Publications
Content preview from Secure Development for Mobile Apps
249
seCure Forms And ACCount regIstrAtIon
so that certain identification and validation patterns stand out. If these repetitive
patterns are noticeable and new ideas for abstraction and elimination are formulated,
then the code has done its job of raising awareness.
<?php
require("../../mobileinc/globalCONST.php");
require(SOURCEPATH."required.php");
$formFields = array('username', 'passwordOrig',
'passwordConfirm', 'email');
$formErrors = array();
$allFields = true;
//first, test for presence of valid form key,
//on error will redirect
//to secure login page with new key and exit
$nonceTracker->processFormNonce();
//iterate $_POST and check
//that each required field is present and has value
foreach ($formFields as $index = > $field)
{
if(!array_key_exists ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Developing with Web Standards

Developing with Web Standards

John Allsopp
Mobile Cloud Computing

Mobile Cloud Computing

Dijiang Huang, Huijun Wu

Publisher Resources

ISBN: 9781482209037