anchor.diff:  							rpgb_session:set_user(Userrec, Session)
   					end,
   					{true, Req1, Ctx#ctx{session = Session1}};
  -				_ ->
  +				NotOkay ->
  +					?info("data returned invalid: ~p", [NotOkay]),
   					{false, Req1, Ctx}
   			end;
   		_ ->
  
positive.code: previously_existed(Req, Ctx) ->
  	{true, Req, Ctx}.
  
  process_post(Req, #ctx{session = Session, hostport = {Host, Port}, action = logout} = Ctx) ->
  	?info("processing logout"),
  	Req1 = rpgb_session:destroy(Req),
  	{true, Req1, Ctx};
  
  process_post(Req, #ctx{session = Session, hostport = {Host, Port}, action = login} = Ctx) ->
  	?info("processing login"),
  	SessionId = rpgb_session:get_id(Session),
  	BaseURL = rpgb:get_url(Req, []),
  
negative.code: 	end.
  
  content_types_provided(Req, Ctx) ->
  	?info("content types provided, method: ~p", [element(1, cowboy_req:method(Req))]),
  	Types = [
  		{{<<"text">>, <<"html">>, []}, to_html},
  		{{<<"text">>, <<"json">>, []}, to_json}
  	],
  	{Types, Req, Ctx}.
  
  content_types_accepted(Req, Ctx) ->
  	?info("content types accepted; got ~p", [element(1, cowboy_req:header(<<"content-type">>, Req))]),
  	Types = [
  		{{<<"application">>, <<"json">>, []}, from_json}
  	],
  	{Types, Req, Ctx}.
  
  