"Please check your inbox" message is now an orange message box instead of a red error box.
This commit is contained in:
parent
c343db12e2
commit
9673d84c3f
|
@ -459,10 +459,8 @@ class Users( object ):
|
||||||
server.sendmail( message[ u"from" ], [ email_address ], message.as_string() )
|
server.sendmail( message[ u"from" ], [ email_address ], message.as_string() )
|
||||||
server.quit()
|
server.quit()
|
||||||
|
|
||||||
# FIXME: this should really be "message =" instead of "error =" since it's not an error, but at
|
|
||||||
# least this gets it displayed on the client
|
|
||||||
yield dict(
|
yield dict(
|
||||||
error = u"Please check your inbox. A password reset email has been sent to %s" % email_address,
|
message = u"Please check your inbox. A password reset email has been sent to %s" % email_address,
|
||||||
)
|
)
|
||||||
|
|
||||||
@expose( view = Main_page )
|
@expose( view = Main_page )
|
||||||
|
|
|
@ -70,6 +70,9 @@ Invoker.prototype.handle_response = function ( request, callback ) {
|
||||||
if ( result.error )
|
if ( result.error )
|
||||||
signal( this, "error_message", result.error );
|
signal( this, "error_message", result.error );
|
||||||
|
|
||||||
|
if ( result.message )
|
||||||
|
signal( this, "message", result.message );
|
||||||
|
|
||||||
if ( callback )
|
if ( callback )
|
||||||
callback( result );
|
callback( result );
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ function Wiki( invoker ) {
|
||||||
this.storage_usage_high = false;
|
this.storage_usage_high = false;
|
||||||
|
|
||||||
connect( this.invoker, "error_message", this, "display_error" );
|
connect( this.invoker, "error_message", this, "display_error" );
|
||||||
|
connect( this.invoker, "message", this, "display_message" );
|
||||||
connect( "search_form", "onsubmit", this, "search" );
|
connect( "search_form", "onsubmit", this, "search" );
|
||||||
connect( "search_button", "onclick", this, "toggle_search_options" );
|
connect( "search_button", "onclick", this, "toggle_search_options" );
|
||||||
connect( "html", "onclick", this, "background_clicked" );
|
connect( "html", "onclick", this, "background_clicked" );
|
||||||
|
|
Reference in New Issue