You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's annoying to test uploads now that uploading requires user authentication. We would like it to be quick and easy.
One idea is to have a function that adds a test user only in development, and code that automatically logs you in as that user only in development. But I'm open to other ideas!
If you want to go with my idea:
In the initialize function, check the ENV envar to see if it is "devel" (in development mode). If so, use createUser to create the user testy with name Testy McTestPerson and email test@test.com. Use setLoggedInUser with "testy" so testy is always logged in.
The text was updated successfully, but these errors were encountered:
It's annoying to test uploads now that uploading requires user authentication. We would like it to be quick and easy.
One idea is to have a function that adds a test user only in development, and code that automatically logs you in as that user only in development. But I'm open to other ideas!
If you want to go with my idea:
In the
initialize
function, check theENV
envar to see if it is "devel" (in development mode). If so, usecreateUser
to create the usertesty
with nameTesty McTestPerson
and emailtest@test.com
. UsesetLoggedInUser
with "testy" so testy is always logged in.The text was updated successfully, but these errors were encountered: