Skip to content

Commit

Permalink
proxy: add more example accounts for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
RTUnreal committed May 8, 2024
1 parent c215fba commit 56d1fec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion service/proxy/lib/proxy/user_cache.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ defmodule Proxy.UserCache do
row =
if username == "alice",
do: nil,
else: %{password: "hunter1", access: {:regular, []}}
else: %{
password: "hunter1",
access:
if(username == "unreal",
do: :premium,
else: {:regular, ["hunter"]}
)
}

if row == nil do
nil
Expand Down

0 comments on commit 56d1fec

Please sign in to comment.