smth smth flashmessages
This commit is contained in:
@@ -18,6 +18,12 @@ export default class AuthController {
|
||||
}
|
||||
})
|
||||
|
||||
session.flash({
|
||||
login: {
|
||||
warning: 'test'
|
||||
}
|
||||
})
|
||||
|
||||
await auth.attempt(username, password)
|
||||
response.redirect().toRoute('events.index')
|
||||
}
|
||||
@@ -25,8 +31,11 @@ export default class AuthController {
|
||||
public async logout({ auth, response, session }: HttpContextContract) {
|
||||
await auth.logout()
|
||||
|
||||
session.flash('errors', {
|
||||
logout: 'test'
|
||||
session.flash('gfd', {
|
||||
warning: 'test'
|
||||
})
|
||||
session.flash('login', {
|
||||
warning: "noch eine warning"
|
||||
})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user