Questions tagged [flash-message]

Flash messages are used to notify the user that something has occurred. For example, a record has been created or they attempted to access something they were not authorized to do.

408 questions
2
votes
2 answers

why I'm getting "UNMET PEER DEPENDENCY" error in angular 2

I'm trying to install angular2-flash-messages to my angular-src, not to the root. then I tried with npm install angular2-flash-messages. then it returns this, ├── UNMET PEER DEPENDENCY @angular/core@2.4.10 └── angular2-flash-messages@1.0.7 then I…
Jobs
  • 269
  • 2
  • 6
  • 21
2
votes
0 answers

Devise "successfully signed in" flash message repeats when user navigates away and then back using back-arrow

In my rails app Devise sends a flash message "Successfully signed in" after the user logs in. However if the user navigates to any other page and then navigates back to the post-sign-in page using the back button, the same flash message renders…
TDB
  • 367
  • 1
  • 3
  • 15
2
votes
2 answers

Flash.alert not working in Ruby on Rails

I'm trying to have an alert pop-up when the user fails to login with the incorrect credentials. The login won't go through but the alert doesn't show up. This is the code that I have in my view:

The Maintenance Functions are restricted to…

Frank
  • 339
  • 8
  • 18
2
votes
4 answers

How do I get connect-flash to return multiple messages, or a single message with newline characters?

I'm building an app using nodejs. I created a form, and I'm working on back-end validation of user input. Basically, I have a var, "messages", and each time I encounter an input error, I append the error to messages. var messages…
Asool
  • 13,031
  • 7
  • 35
  • 49
2
votes
1 answer

How does Laravel unset session flash data?

I am currently trying to implement a way to flash session data similarly to how Laravel deals with flash data. I am aware that Laravel override the native session methods that are getting called by functions like session_start. They seem to do this…
Stephan-v
  • 19,255
  • 31
  • 115
  • 201
2
votes
0 answers

Flask - duplicates flash messages

I have problem with flask flash() function, get_flashed_messages() always returns me duplicates. I set flash for logout : @app.route('/logout') def logout(): session.pop('logged_in', None) flash('You are logged out!', 'success') return…
user3501587
  • 425
  • 5
  • 16
2
votes
2 answers

How do I show flash messages from a different extension/plugin?

In Typo3 7.x, I need to show a flashmessage after a redirect to a different extension. Somehow, the messages are not shown there: // in powermail_extended: $this->addFlashMessage('Some message', '',…
giraff
  • 4,601
  • 2
  • 23
  • 35
2
votes
1 answer

Node/Express flash message via res.locals on Heroku

I'm using making error messages available on res.locals and displaying them as needed with a redirect. I am not completely sure how this works, but it does. At least when I'm running the server locally. Deployed to Heroku on the other hand, it…
2
votes
1 answer

string interpolation in devise flash messages?

I'm new to RoR and I would like to personalise the Devise flash messages to use the name of the current user. I've seen that the original file includes the following line: devise.en.yml failure: "Could not authenticate you from %{kind} because…
catch22
  • 1,564
  • 1
  • 18
  • 41
2
votes
0 answers

Yii2: How to use events to set flash messages when new records get created in MySQL (event listeners)

How do I notify user on dashboard(index.php) as soon as new records get created in database or any changes made in database Iknow I need to query like CREATE TRIGGER notifyMe ON table1 AFTER INSERT, UPDATE, DELETE AS EXEC…
JKLM
  • 1,470
  • 3
  • 28
  • 66
2
votes
1 answer

Laravel flash messages fail

I am using laravel 5.1 and flash messages. I want to show a flash message to the user when the validator fails. My code looks like this: /* Validation */ $rules = array( 'username' =>…
Tommy
  • 23
  • 4
2
votes
1 answer

yii flash message not displaying after redirection in view page

flash messages was working fine in local when i moved it into production(cpanel) its not displaying. I am not getting any error or warning. In controller, i am setting flash like this Yii::app()->user->setFlash('success', "Slider updated…
user4197709
2
votes
1 answer

Flash messages with sessions in PHP

I work on a project in PHP which does not use any kind of a framework for PHP. I come from Yii background and I've used: Yii::app()->user->setFlash('flash_name', 'Flash value'); And checked it with: Yii::app()->user->hasFlash('flash_name'); To…
user5224574
2
votes
2 answers

Zend Framework 2 redirect() with flashMessenger does not work

I have some controller with method_1(). In this method I call method_2(). In method_2() I have (try... catch) - block with defined flashMesseges and redirect. $this->flashMessenger()->addErrorMessage("There are errors."); return…
2
votes
2 answers

Flash data in Laravel 5

I'm trying to display flash data but it's not showing properly. It's showing: {{ Session::get('flash_message') }} but it should be the message "Your article has been created" What's wrong with my code? Thanks! In my controller I have: public…
ci_lover
  • 710
  • 1
  • 14
  • 38