authpartner

Clone or download

demographic signup form changes

Modified Files

M css/stylecrt.css
+2 −2
--- 'a/css/stylecrt.css'
+++ b/css/stylecrt.css
@@ -72,11 +72,11 @@ a:hover, a:active, a:focus {
.btn-primary {
background-color: light-blue-gradient;
- border-color: #2e6da4;
+ border-color: light-blue-gradient;
}
.btn-primary:hover, .btn-primary:focus {
background-color: #286090;
- border-color: #204d74;
+ border-color: #286090;
}
#username {
M header.php
+33 −4
--- 'a/header.php'
+++ b/header.php
@@ -1,4 +1,5 @@
-<?php include 'config.php';
+<?php
+include 'config.php';
$code = "code_signup";
$code_download = "code_download";
?>
@@ -37,7 +38,7 @@ $code_download = "code_download";
padding-bottom: 8px;
}
.navbar-nav>li>a:hover{ color: #000; background-color:#f0ede4;}
- .row{margin-top: -10px;margin-bottom: 15px;}
+ .row{padding-bottom: 15px;}
}
.dropdown{
@@ -62,15 +63,17 @@ $code_download = "code_download";
<body>
<!-- Navigation -->
<div class="row">
+ <div class="container">
<div class="col-md-6">
<a class="navbar-brand pull-left" href="<?php echo $config['baseUrl']; ?>"><img src="images/logo.png"></a>
</div>
<div class="col-md-6">
- <a class="navbar-brand pull-right">
+ <a class="navbar-brand pull-right" style="margin-top: -6px;">
<img src="images/digitalindialogo.png"></a>
</div>
</div>
- <nav role="navigation" style="background-color: blueviolet; margin-bottom: 15px;height: 40px; position: relative;" >
+ </div>
+ <nav role="navigation" style="background-color: blueviolet; margin-bottom: 15px; position: relative;" >
<div class="container" style="padding-left:0px !important;">
<!-- Brand and toggle get grouped for better mobile display -->
<!-- Collect the nav links, forms, and other content for toggling -->
@@ -118,6 +121,32 @@ $code_download = "code_download";
<div class="dropdown-toggle" data-toggle="dropdown">DIGILOCKER</div>
<ul class="dropdown-menu" style="margin-left: -5px;">
<li>
+ <span><form action = "<?php echo $config[$code_download] ?>" method = "GET" role="form">
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">Response Type</label>
+ <input type="text" class="form-control" name = "response_type" value="code">
+ </div>
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">Client ID</label>
+ <input type="text" class="form-control" name = "client_id" value="<?php echo $config['client_id_download'] ?>">
+ </div>
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">Redirect Uri</label>
+ <input type="text" class="form-control" name = "redirect_uri" value=<?php echo $config['download_redirect_uri'] ?>>
+ </div>
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">State</label>
+ <input type="text" class="form-control" name = "state" value="123456">
+ </div>
+ <div class="form-group has-success" style="display:none">
+ <label class="control-label" for="inputSuccess">Redirect Uri</label>
+ <input type="text" class="form-control" name = "dl_flow" value="signup">
+ </div>
+ <button type="submit" class="btn">DigiLocker SignUp Web</button>
+ </form>
+ </span>
+ </li><hr>
+ <li>
<span>
<form action = "<?php echo $config[$code] ?>" method = "POST" role="form">
<button type="submit" class="btn">Demographic SignUp</button>
M otp_form.php
+2 −7
--- 'a/otp_form.php'
+++ b/otp_form.php
@@ -140,21 +140,16 @@ else
if(isset($rest->error) || !$result){
header("Location: otp_form.php?message=".$rest->error_description);
-
exit;
}
}
-
-//curl_close($vh);
-die();
}
-
-//include 'footer.php' ?>
+?>
<script>
<?php
if(isset($_GET['message'])){
echo 'setTimeout(function () {
- //window.location.href = "otp_form.php";
+ window.location.href = "otp_form.php";
}, 3000);
';
}
M signup.php
+17 −18
--- 'a/signup.php'
+++ b/signup.php
@@ -40,7 +40,14 @@
<label><i class="fa fa-calendar"></i> Date Of Birth</label>
<input type="text" class="form-control datetime" id="dob" name="dob" value="" autocomplete="off" placeholder="Enter Date Of Birth *">
</div>
-
+ <div class="form-group col-md-6">
+ <label>Mobile</label>
+ <input type="text" class="form-control" name="mobile" id="mobile" value="" autocomplete="off" maxlength="10" placeholder="Enter mobile number *" required>
+ </div>
+ <div class="form-group col-md-6">
+ <label>Aadhaar</label>
+ <input type="text" class="form-control" name="uid" id="uid" value="" autocomplete="off" maxlength="12" placeholder="Enter Aadhaar Number *" required>
+ </div>
<div class="form-group col-md-6">
<label>Gender</label>
<select style="color: #999;" class="form-control" name="gender" id="gender" required>
@@ -50,21 +57,13 @@
</select>
</div>
<div class="form-group col-md-6">
- <label>Verification</label>
+ <label>Verify Mobile?</label>
<select style="color: #999;" class="form-control" name="vefification" id="vefification" required>
<option value="" selected>Please Select *</option>
<option value="Y">Yes</option>
<option value="N">No</option>
</select>
</div>
- <div class="form-group col-md-6">
- <label>Mobile</label>
- <input type="text" class="form-control" name="mobile" id="mobile" value="" autocomplete="off" maxlength="10" placeholder="Enter mobile number *" required>
- </div>
- <div class="form-group col-md-6">
- <label>Aadhaar</label>
- <input type="text" class="form-control" name="uid" id="uid" value="" autocomplete="off" maxlength="12" placeholder="Enter Aadhaar Number *" required>
- </div>
<div class="panel-footer">
<div class="text-center">
<input type="submit" class="btn btn-primary" name="submit" style=" border-radius:5px; margin-top:30px;" value="Submit" />
@@ -90,13 +89,13 @@
endDate: "today"
});
</script>
-<script>
+<!--<script>
<?php
-if (isset($_GET['message'])) {
- echo 'setTimeout(function () {
- window.location.href = "signup.php";
- }, 5000);
- ';
-}
+//if (isset($_GET['message'])) {
+ //echo 'setTimeout(function () {
+ // window.location.href = "signup.php";
+ // }, 5000);
+ // ';
+//}
?>
-</script>
+</script>-->
D xml/hashKey.xml
+0 −5
--- 'a/xml/hashKey.xml'
+++ /dev/null
@@ -1,5 +0,0 @@
-<?xml version="1.0"?>
-<maincontent>
- <code num=""/>
- <access_token></access_token>
-</maincontent>