Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
burtbeckwith committed Apr 15, 2016
1 parent 44efce3 commit e5a1d08
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -8,5 +8,6 @@
.gradle
.idea
build
classes
cobertura.ser
kindlegen
3 changes: 0 additions & 3 deletions functional-test-app/gradle/buildscript.inc
@@ -1,7 +1,4 @@
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url 'https://repo.grails.org/grails/core' }
Expand Down
5 changes: 2 additions & 3 deletions src/docs/customization.adoc
Expand Up @@ -178,7 +178,6 @@ The `springSecurityUI.gsp` layout includes `grails-app/assets/stylesheets/spring
*= require jquery.jgrowl.css
*= require spring-security-ui-common.css
*/
[source,java]
----

and `grails-app/assets/javascripts/spring-security-ui.js` which has no JavaScript code and only includes other JavaScript files:
Expand Down Expand Up @@ -244,7 +243,7 @@ The unfortunate consequence of mixing a newer domain class that does password ha

This option defaults to `false`, so if you have an older domain class that doesn't handle hashing just enable this plugin's hashing:

[source,java]
[source,groovy]
----
grails.plugin.springsecurity.ui.encodePassword = true
----
Expand Down Expand Up @@ -283,7 +282,7 @@ Each interface has a default implementation, e.g. `DefaultAclStrategy`, `Default

To override the functionality defined in one of the strategy interfaces, register your own implementation of the interface in your application's `grails-app/conf/spring/resources.groovy`, e.g.

[source,java]
[source,groovy]
----
import com.myapp.MyRequestmapStrategy
Expand Down
4 changes: 2 additions & 2 deletions src/docs/forgotPassword.adoc
Expand Up @@ -33,7 +33,7 @@ image::forgot_password_final.png[]

The post-reset destination url is configurable in `grails-app/conf/application.groovy` using the `postResetUrl` attribute:

[source,java]
[source,groovy]
----
grails.plugin.springsecurity.ui.forgotPassword.postResetUrl = '/reset'
----
Expand All @@ -42,7 +42,7 @@ If you don't specify a value then the `defaultTargetUrl` value will be used, whi

You can customize the subject, body, and from address of the reset email by overriding the default values in `grails-app/conf/application.groovy`, for example:

[source,java]
[source,groovy]
----
grails.plugin.springsecurity.ui.forgotPassword.emailBody = '...'
grails.plugin.springsecurity.ui.forgotPassword.emailFrom = '...'
Expand Down
10 changes: 5 additions & 5 deletions src/docs/userRegistration.adoc
Expand Up @@ -29,7 +29,7 @@ image::register_final.png[]

The post-registration destination url is configurable in `grails-app/conf/application.groovy` using the `postRegisterUrl` attribute:

[source,java]
[source,groovy]
----
grails.plugin.springsecurity.ui.register.postRegisterUrl = '/welcome'
----
Expand All @@ -38,7 +38,7 @@ If you don't specify a value then the `grails.plugin.springsecurity.successHandl

You can customize the subject, body, and from address of the registration email by overriding the default values in `grails-app/conf/application.groovy`, for example:

[source,java]
[source,groovy]
----
grails.plugin.springsecurity.ui.register.emailBody = '...'
grails.plugin.springsecurity.ui.register.emailFrom = '...'
Expand All @@ -49,14 +49,14 @@ The `emailBody` property should be a GString and will have the User domain class

In addition, each new user will be granted `ROLE_USER` after finalizing the registration. If you want to change the default role, add more, or grant no roles at all (for example if you want an admin to approve new users and explicitly enable new users) then you can customize that with the `defaultRoleNames` attribute (which is a List of Strings):

[source,java]
[source,groovy]
----
grails.plugin.springsecurity.ui.register.defaultRoleNames = [] // no roles
----

or

[source,java]
[source,groovy]
----
grails.plugin.springsecurity.ui.register.defaultRoleNames = ['ROLE_CUSTOMER']
----
Expand All @@ -71,7 +71,7 @@ You should consider the registration code as starter code - every signup workflo

If there are unexpected validation errors during registration (which can happen when there is a disconnect between the domain classes and the code in `RegisterController` they will be logged at the `warn` or `error` level, so enable logging to ensure that you see the messages, e.g.

[source,java]
[source,groovy]
----
...
logger 'grails.plugin.springsecurity.ui.SpringSecurityUiService', WARN
Expand Down

0 comments on commit e5a1d08

Please sign in to comment.