Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
smart_core_connect
/
core-connect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d39b375e
authored
May 30, 2018
by
Prasong Putichanchai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f7e7521f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
www/src/Controller/UsersController.php
+0
-0
www/src/Template/Users/signin.ctp
+4
-3
www/src/Template/Users/verify.ctp
+5
-5
No files found.
www/src/Controller/UsersController.php
View file @
d39b375e
This diff is collapsed.
Click to expand it.
www/src/Template/Users/signin.ctp
View file @
d39b375e
<?php $this->layout = 'login'; ?>
<div>
<div class="center" style="padding-bottom: 40px;">
<?php echo $this->Html->image('../img/core/img/logo-connect-login@3x.png', ['alt' => 'Logo']); ?>
...
...
@@ -5,7 +6,7 @@
<div class="col-md-12">
<?php
echo $this->Form->create(null, ['url' => ['controller' => 'Users', 'action' => 'verify'],
'id' =>
''
, 'name' => 'Users', 'role' => 'form', 'onsubmit' => 'return validateForm()']);
'id' =>
false
, 'name' => 'Users', 'role' => 'form', 'onsubmit' => 'return validateForm()']);
?>
<?php echo $this->Flash->render() ?>
<div class="row">
...
...
@@ -15,7 +16,7 @@
<div class="input-group-addon">
<span class="glyphicon glyphicon-user"></span>
</div>
<input type="text" name="data[username]" value="" placeholder="USERNAME" class="form-control input-lg input-border-radius color-button-border"
id="FALSE"
style="padding-left: 42px;">
<input type="text" name="data[username]" value="" placeholder="USERNAME" class="form-control input-lg input-border-radius color-button-border" style="padding-left: 42px;">
</div>
</div>
</div>
...
...
@@ -27,7 +28,7 @@
<div class="input-group-addon">
<span class="glyphicon glyphicon-lock"></span>
</div>
<input data-toggle="password" data-placement="before" type="password" name="data[password]" value="" placeholder="********" class="form-control input-lg input-border-radius color-button-border"
id="FALSE"
style="padding-left: 42px;">
<input data-toggle="password" data-placement="before" type="password" name="data[password]" value="" placeholder="********" class="form-control input-lg input-border-radius color-button-border" style="padding-left: 42px;">
</div>
</div>
</div>
...
...
www/src/Template/Users/verify.ctp
View file @
d39b375e
<script type='text/javascript'>
setTimeout(function(){
setTimeout(function () {
if (typeof Login == 'undefined') {
location = '<?php echo $paramOptions['url']['url']
; ?>';
location = '<?php echo $RedirectApplicationURL
; ?>';
} else {
Login.onLogin('<?php echo json_encode($paramOptions['url']); ?>','<?php echo json_encode($paramOptions['token']); ?>','<?php $paramOptions['topic']
; ?>');
Login.onLogin('<?php echo $token; ?>', '<?php echo $RedirectApplicationURL; ?>', '<?php echo $topic
; ?>');
}
}, 1000);
}, 1000);
</script>;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment