-
Notifications
You must be signed in to change notification settings - Fork 0
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
6 changed files
with
163 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package de.womomo | ||
|
||
class RegisterController extends grails.plugins.springsecurity.ui.RegisterController { | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<head> | ||
<title><g:message code='spring.security.ui.forgotPassword.title'/></title> | ||
<meta name='layout' content='register'/> | ||
</head> | ||
|
||
<body> | ||
|
||
<p/> | ||
|
||
<s2ui:form width='350' height='220' elementId='forgotPasswordFormContainer' | ||
titleCode='spring.security.ui.forgotPassword.header' center='true'> | ||
|
||
<g:form action='forgotPassword' name="forgotPasswordForm" autocomplete='off'> | ||
|
||
<g:if test='${emailSent}'> | ||
<br/> | ||
<g:message code='spring.security.ui.forgotPassword.sent'/> | ||
</g:if> | ||
|
||
<g:else> | ||
|
||
<br/> | ||
<h4><g:message code='spring.security.ui.forgotPassword.description'/></h4> | ||
|
||
<table> | ||
<tr> | ||
<td><label for="username"><g:message code='spring.security.ui.forgotPassword.username'/></label></td> | ||
<td><g:textField name="username" size="25" /></td> | ||
</tr> | ||
</table> | ||
|
||
<s2ui:submitButton elementId='reset' form='forgotPasswordForm' messageCode='spring.security.ui.forgotPassword.submit'/> | ||
|
||
</g:else> | ||
|
||
</g:form> | ||
</s2ui:form> | ||
|
||
<script> | ||
$(document).ready(function() { | ||
$('#username').focus(); | ||
}); | ||
</script> | ||
|
||
</body> |
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,47 @@ | ||
<%@ page import="de.womomo.Campsite" %> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | ||
<meta name="layout" content="main"/> | ||
<title><g:message code="register.heading.label"/></title> | ||
</head> | ||
<body> | ||
<content tag="sidebar"></content> | ||
|
||
<content tag="body"> | ||
|
||
<h1><g:message code="register.heading.label"/></h1> | ||
|
||
<g:if test="${flash.message}"> | ||
<div class="success">${flash.message}</div> | ||
</g:if> | ||
<g:hasErrors bean="${command}"> | ||
<g:renderErrors bean="${command}" as="list"/> | ||
</g:hasErrors> | ||
|
||
<g:form action="register" name="registerForm"> | ||
|
||
<g:if test='${emailSent}'> | ||
<br/> | ||
<g:message code='spring.security.ui.register.sent'/> | ||
</g:if> | ||
<g:else> | ||
|
||
<div class="form_settings"> | ||
<p><span><g:message code="register.username.label" default="Username"/></span><g:textField name="username" value="${command?.username}" class="text"/></p> | ||
|
||
<p><span><g:message code="register.email.label" default="E-Mail"/></span><g:textField name="email" value="${command?.email}" class="text"/></p> | ||
|
||
<p><span><g:message code="register.password.label" default="Password"/></span><g:passwordField name="password" value="${command?.password}" class="text"/></p> | ||
|
||
<p><span><g:message code="register.password2.label" default="Repeat password"/></span><g:passwordField name="password2" value="${command?.password2}" class="text"/></p> | ||
|
||
<br/> | ||
<p class="buttons"><input class="submit" type="submit" name="register" value="${message(code: 'register.button.register.label', default: 'Register')}"/></p> | ||
</div> | ||
</g:else> | ||
</g:form> | ||
</content> | ||
|
||
</body> | ||
</html> |
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,42 @@ | ||
<head> | ||
<title><g:message code='spring.security.ui.resetPassword.title'/></title> | ||
<meta name='layout' content='register'/> | ||
</head> | ||
|
||
<body> | ||
|
||
<p/> | ||
|
||
<s2ui:form width='475' height='250' elementId='resetPasswordFormContainer' | ||
titleCode='spring.security.ui.resetPassword.header' center='true'> | ||
|
||
<g:form action='resetPassword' name='resetPasswordForm' autocomplete='off'> | ||
<g:hiddenField name='t' value='${token}'/> | ||
<div class="sign-in"> | ||
|
||
<br/> | ||
<h4><g:message code='spring.security.ui.resetPassword.description'/></h4> | ||
|
||
<table> | ||
<s2ui:passwordFieldRow name='password' labelCode='resetPasswordCommand.password.label' bean="${command}" | ||
labelCodeDefault='Password' value="${command?.password}"/> | ||
|
||
<s2ui:passwordFieldRow name='password2' labelCode='resetPasswordCommand.password2.label' bean="${command}" | ||
labelCodeDefault='Password (again)' value="${command?.password2}"/> | ||
</table> | ||
|
||
<s2ui:submitButton elementId='reset' form='resetPasswordForm' messageCode='spring.security.ui.resetPassword.submit'/> | ||
|
||
</div> | ||
</g:form> | ||
|
||
</div> | ||
</s2ui:form> | ||
|
||
<script> | ||
$(document).ready(function() { | ||
$('#password').focus(); | ||
}); | ||
</script> | ||
|
||
</body> |