Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
124 additions
and
40 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
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,5 +1,5 @@ | ||
#Grails Metadata file | ||
#Wed May 13 19:18:15 GFT 2015 | ||
app.grails.version=2.4.4 | ||
#Wed Dec 30 04:20:57 GFT 2015 | ||
app.grails.version=2.5.3 | ||
app.name=EhrCommitter | ||
app.version=0.1 | ||
app.version=2.5.3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package hibernate | ||
|
||
class AuthFilters { | ||
|
||
def filters = { | ||
|
||
loginCheck(controller: '*', action: '*') { | ||
before = { | ||
if (!session.token && !actionName.equals('login')) | ||
{ | ||
redirect(controller: 'committer', action: 'login') | ||
return false | ||
} | ||
} | ||
} | ||
} | ||
} |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="layout" content="main"> | ||
<title></title> | ||
<style> | ||
label { | ||
display: block; | ||
} | ||
.label { | ||
width: 33%; | ||
display: inline-block; | ||
text-align: right; | ||
padding-right: 1em; | ||
} | ||
.buttons { | ||
text-align: right; | ||
padding-right: 1em; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1>Login</h1> | ||
|
||
<g:if test="${flash.message}"> | ||
<div class="message" style="display: block">${flash.message}</div> | ||
</g:if> | ||
|
||
<g:form action="login"> | ||
<label> | ||
<span class="label">username</span> | ||
<input type="text" required="true" name="username" /> | ||
</label><br /> | ||
<label> | ||
<span class="label">password</span> | ||
<input type="password" required="true" name="password" /> | ||
</label><br /> | ||
<label> | ||
<span class="label">organization</span> | ||
<input type="text" required="true" name="orgnumber" /> | ||
</label><br /> | ||
|
||
<div class="buttons"> | ||
<g:submitButton name="doit" value="Login" /> | ||
</div> | ||
</g:form> | ||
|
||
</body> | ||
</html> |