Separate domain access from code-channel login
This commit is contained in:
parent
066f14d007
commit
6b1bb203df
7 changed files with 324 additions and 6 deletions
|
|
@ -284,7 +284,7 @@ export function StorageLocationSheet({ open, apiBase, currentRemote, initialMode
|
|||
|
||||
{!session.authenticated ? (
|
||||
<div className="server-login-form">
|
||||
<p className="sheet-label">登录服务器代码频道</p>
|
||||
<p className="sheet-label">代码频道账号</p>
|
||||
<div className="login-fields">
|
||||
<input value={username} onChange={event => setUsername(event.target.value)} placeholder="账号" autoComplete="username" />
|
||||
<input type="password" value={password} onChange={event => setPassword(event.target.value)} placeholder="密码" autoComplete="current-password" onKeyDown={event => {
|
||||
|
|
@ -292,7 +292,7 @@ export function StorageLocationSheet({ open, apiBase, currentRemote, initialMode
|
|||
}} />
|
||||
<button className="secondary-button" onClick={login} disabled={busy || !username || !password}>登录</button>
|
||||
</div>
|
||||
<small>密码只用于换取 HoloLake 应用令牌,不写入知识库或 Git 地址。</small>
|
||||
<small>密码只用于换取 HoloLake 代码频道应用令牌,不写入知识库或 Git 地址;登录代码频道不等于取得目标域运行权限。</small>
|
||||
</div>
|
||||
) : (
|
||||
<div className="repository-picker">
|
||||
|
|
|
|||
Loading…
Reference in a new issue