Changed auth to use the wording 'password' instead of 'token' and give information about defaults and how to change the password.

This commit is contained in:
Jaret Burkett
2025-08-23 09:30:44 -06:00
parent e1fd411665
commit 823e690703

View File

@@ -112,7 +112,7 @@ export default function AuthWrapper({ authRequired, children }: AuthWrapperProps
<form onSubmit={handleSubmit} className="space-y-6"> <form onSubmit={handleSubmit} className="space-y-6">
<div> <div>
<label htmlFor="token" className="block text-sm font-medium text-gray-400 mb-2"> <label htmlFor="token" className="block text-sm font-medium text-gray-400 mb-2">
Access Token Password
</label> </label>
<input <input
id="token" id="token"
@@ -124,8 +124,11 @@ export default function AuthWrapper({ authRequired, children }: AuthWrapperProps
ref={inputRef} ref={inputRef}
onChange={e => setToken(e.target.value)} onChange={e => setToken(e.target.value)}
className="w-full px-4 py-3 rounded-lg bg-gray-800 border border-gray-700 focus:border-blue-500 focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 text-gray-100 transition duration-200" className="w-full px-4 py-3 rounded-lg bg-gray-800 border border-gray-700 focus:border-blue-500 focus:ring-2 focus:ring-blue-500 focus:ring-opacity-50 text-gray-100 transition duration-200"
placeholder="Enter your token" placeholder="Enter your password"
/> />
<div className='text-gray-500 text-xs mt-2'>
The password is set with the environment variable AI_TOOLKIT_AUTH, the default is the super secure secret word "password"
</div>
</div> </div>
{error && ( {error && (
@@ -152,7 +155,7 @@ export default function AuthWrapper({ authRequired, children }: AuthWrapperProps
></path> ></path>
</svg> </svg>
) : ( ) : (
'Check Token' 'Check Password'
)} )}
</button> </button>
</form> </form>