Skip to content

Commit

Permalink
fix #1610 login error only shown on login page
Browse files Browse the repository at this point in the history
  • Loading branch information
gschueler committed Jan 12, 2016
1 parent fd6b4b9 commit b35aec8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
Expand Up @@ -30,7 +30,7 @@ class UserController extends ControllerBase{
}

def error = {
flash.error="Invalid username and password."
flash.loginerror=message(code:"invalid.username.and.password")
return render(view:'login')
}

Expand Down
1 change: 1 addition & 0 deletions rundeckapp/grails-app/i18n/messages.properties
Expand Up @@ -1090,3 +1090,4 @@ jobs.and.ad.hoc.executions.will.be.queued.until.previous.executions.complete=Job
0.1.threads.in.use={0}/{1} Threads in use.
quartz.scheduler.thread.usage.is.currently.at=Quartz Scheduler thread usage is currently at {0}
healthcheck.json=Healthcheck (json)
invalid.username.and.password=Invalid username and password.
1 change: 1 addition & 0 deletions rundeckapp/grails-app/i18n/messages_es_419.properties
Expand Up @@ -1088,3 +1088,4 @@ jobs.and.ad.hoc.executions.will.be.queued.until.previous.executions.complete=Tra
0.1.threads.in.use={0}/{1} Subprocesos en uso.
quartz.scheduler.thread.usage.is.currently.at=Uso de Programador de Cuarzo de Subprocesos se encuentra actualmente en {0}
healthcheck.json=Chequeo médico (json)
invalid.username.and.password=Invalid username and password.
4 changes: 2 additions & 2 deletions rundeckapp/grails-app/views/user/login.gsp
Expand Up @@ -79,9 +79,9 @@
</div>
</form>
</div>
<g:if test="${flash.error}">
<g:if test="${flash.loginerror}">
<div class="panel-footer panel-danger">
<g:enc>${flash.error}</g:enc>
<g:enc>${flash.loginerror}</g:enc>
</div>
</g:if>
</div>
Expand Down

0 comments on commit b35aec8

Please sign in to comment.