cannot get getCurrentUser() after ajaxSuccess
<p>after i done with this <a href="https://stackoverflow.com/questions/40284283/login-from-android-http-post-to-grails-3-spring-security/40309422?noredirect=1">post</a>, and i already add my code into <code>application.groovy</code> like this</p>

<pre><code>grails.plugin.springsecurity.controllerAnnotations.staticRules = [
[pattern: '/',               access: ['permitAll']],
[pattern: '/error',          access: ['permitAll']],
[pattern: '/index',          access: ['permitAll']],
[pattern: '/shutdown',       access: ['permitAll']],
[pattern: '/assets/**',      access: ['permitAll']],
[pattern: '/**/js/**',       access: ['permitAll']],
[pattern: '/**/css/**',      access: ['permitAll']],
[pattern: '/**/images/**',   access: ['permitAll']],
[pattern: '/**/favicon.ico', access: ['permitAll']],
[pattern: '/login/ajaxSuccess',       access: ['permitAll']],
[pattern: '/login/ajaxSuccess/**',       access: ['permitAll']],
[pattern: '/**/ajaxSuccess/**',       access: ['permitAll']]
</code></pre>

<p>]</p>

<p>my error log become <a href="https://drive.google.com/open?id=0ByvgNTv5gx2dbDdTLUNlWnBvWVU" rel="nofollow noreferrer">like this..</a></p>

<p>this is corporateUserService.groovy file</p>

<pre><code>def getCurrentCifUser() { //line 949
def cifUser = CifUser.find("from com.vastpalaso.app.cif.CifUser cu where cu.userDetails.user.id=?", [
                    springSecurityService.principal.id //line 950
            ])

            return cifUser
        }
</code></pre>

<p>and this is in logincotroller..</p>

<pre><code>def cifUser = corporateUserService.getCurrentCifUser() //line 168
</code></pre>