#these methods provide basic functionality for the user login system
#===================================================================
def login
+
return unless request.post?
self.current_user = User.authenticate(params[:login], params[:password])
if logged_in?
flash[:notice] = "Logged in successfully"
end
end
+
+ def forgot_password
+ raise "Not Implemented!"
+ end
def signup
@user = User.new(params[:user])