Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ae6e16fb57
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (29 sloc) 0.757 kB
import com.testapp.TestUser
import grails.util.Metadata
class HackController {
def userCache
def getSessionValue = {
def value = session[params.name]
render value ? value.toString() : ''
}
def getSessionNames = {
session.nowdate = new Date() // to test it's working
def sb = new StringBuilder()
session.attributeNames.each { sb.append(it).append '<br/>\n' }
render sb.toString()
}
def getUserProperty = {
render TestUser.findByUsername(params.user)."$params.propName"
}
def setUserProperty = {
TestUser.findByUsername(params.user).properties = params
userCache.removeUserFromCache params.user
render 'ok'
}
def clearAllData = {
render 'ok'
}
def grailsVersion = {
render Metadata.current.getGrailsVersion()
}
}
Jump to Line
Something went wrong with that request. Please try again.