-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from kofoworola/add/authentication
Add/authentication
- Loading branch information
Showing
8 changed files
with
164 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ storage/*.key | |
Homestead.yaml | ||
Homestead.json | ||
/.vagrant | ||
|
||
\.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,75 @@ | ||
<html> | ||
<head> | ||
<title>{{ config('app.name') }}</title> | ||
<link href="https://fonts.googleapis.com/css?family=Nanum+Gothic+Coding" rel="stylesheet"> | ||
<style> | ||
body,html{ | ||
background-color: black; | ||
} | ||
.console{ | ||
background-color: black; | ||
padding: 20px 10px; | ||
} | ||
p{ | ||
font-family: 'Nanum Gothic Coding', monospace; | ||
margin: 5px 0; | ||
} | ||
.command,.output{ | ||
color: white; | ||
} | ||
.directory{ | ||
font-weight: bold; | ||
color: #42df00; | ||
} | ||
.tabbed{ | ||
padding-left: 20px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="console"> | ||
<p class="command"><span class="directory">user{{ '@'.config('app.name') }}:~</span>$ {{ $command }}</p> | ||
@foreach($lines as $line) | ||
{!! $line !!} | ||
@endforeach | ||
<br> | ||
<p class="command">Command Run</p> | ||
<head> | ||
<title>{{ config('app.name') }}</title> | ||
<link href="https://fonts.googleapis.com/css?family=Nanum+Gothic+Coding" rel="stylesheet"> | ||
<style> | ||
body, html { | ||
background-color: black; | ||
} | ||
.console { | ||
font-family: 'Nanum Gothic Coding', monospace; | ||
background-color: black; | ||
padding: 20px 10px; | ||
} | ||
p { | ||
margin: 5px 0; | ||
} | ||
.command { | ||
display: flex; | ||
} | ||
.command, .output { | ||
color: white; | ||
width: 100%; | ||
} | ||
.directory { | ||
font-weight: bold; | ||
color: #42df00; | ||
} | ||
.console input { | ||
background-color: transparent; | ||
border: none; | ||
caret-color: white; | ||
/*color: white;*/ | ||
width: 90%; | ||
} | ||
.console input:active, input:focus { | ||
outline: none; | ||
background-color: transparent; | ||
border: none; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="console"> | ||
<div class="command"> | ||
<div class="directory">users{{ '@'.config('app.name') }}:~</div> | ||
<div class="output">$ {{ $command }}</div> | ||
</div> | ||
@if(!$authenticated) | ||
<div class="command"> | ||
<div>{{ config('commands.authentication')['display'] }}:</div> | ||
<form method="post"> | ||
{{ csrf_field() }} | ||
<div class="output"><input type="password" name="password"/></div> | ||
</form> | ||
</div> | ||
</body> | ||
@endif | ||
@foreach($lines as $line) | ||
{!! $line !!} | ||
@endforeach | ||
<br> | ||
@if($authenticated) | ||
<div class="command"> | ||
Command run | ||
</div> | ||
@endif | ||
</div> | ||
</body> | ||
</html> |