Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

信件翻譯 #16

Open
r1235613 opened this issue Aug 8, 2019 · 24 comments
Open

信件翻譯 #16

r1235613 opened this issue Aug 8, 2019 · 24 comments
Assignees

Comments

@r1235613
Copy link
Collaborator

r1235613 commented Aug 8, 2019

我需要帳號建立、密碼重設的英文翻譯

###帳號建立

您的帳戶建立請求已在路上,請在48小時內點擊下面的連結完成您的帳戶建立手續

###密碼重設

您的密碼重設連結如下,請在48小時內使用它

@linonetwo
Copy link
Contributor

Account Creation

Your account creation request is on the way, please click on the link below within 48 hours to accomplish the activation.

Password Reset

To update your password, click the link below, it will be invalidated after 48 hours.

@misaka10055
Copy link
Collaborator

@linonetwo 给出的翻译很棒了。

如果"accomplish the activation" 改成 "activate your account" 可能会看着更顺一些?

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

我對英文一竅不通~謝謝兩位啦~

有一個忘記了,也麻煩兩位了

電子郵件已更改

我們收到您的電子郵件變更請求,我們已經將認證信件發至{ new email},請到新的電子郵件信箱核准此一請求。
若您並未做出此決定,請點擊下方的連結以凍結此一申請,我們會將您的電子郵件恢復原樣並凍結變更72小時,請盡快更改您的密碼。

電子郵件變更確認

我們收到您的電子郵件變更申請,若確定要變更電子郵件至(new_email),請點擊下面的網址
url

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

@linonetwo 域名有著落了嗎?

@linonetwo
Copy link
Contributor

我买个 rehentai.club 咋样,先买一年才 3 美元,之后看情况再续或者换。

@linonetwo
Copy link
Contributor

有没有能用支付宝付款的域名商推荐啊,感觉跨国付款有点麻烦。

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

話說這些連結要連回Flask處理,還是經由前端處理再Call API?

@linonetwo
Copy link
Contributor

应该是打开一个前端页面,然后带着 JWT 调用 API 吧

@misaka10055
Copy link
Collaborator

有没有能用支付宝付款的域名商推荐啊,感觉跨国付款有点麻烦。

@linonetwo 我之前用过Oray (做花生壳的那家)的域名,可以支付宝而且不需要备案。不知道现在有没有改政策。

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

註解 2019-08-08 201148
我買了一個rehentai.work,反正不用錢
開發先暫時這樣用吧

@linonetwo
Copy link
Contributor

linonetwo commented Aug 8, 2019

我买了 rehentai.info 了,才 20 CNY

你那为啥不用钱?

@linonetwo
Copy link
Contributor

看来都是第一年打折的类型

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

不知道,現在這家每天送一個免錢的.work
不過需要日本境內發行的信用卡才能買

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

应该是打开一个前端页面,然后带着 JWT 调用 API 吧

但是忘記密碼沒辦法登入就不會有jwt,我想說直接由Flask提供服務再301回前端

@linonetwo
Copy link
Contributor

先用你的测试吧, rehentai.info 就备用。

注册登录找回密码链接那的确可以直接 flask 提供一个简约的页面,然后带着参数跳转过来。
跳转之后就自动登录了?那是不是要在 URL 里带着 JWT 跳转?

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

跳转之后就自动登录了?

我沒有打算作自動登入耶

@linonetwo
Copy link
Contributor

其实「登录状态」就是前端持有后端签发的 JWT 的状态,所以只要在找回密码或点击激活邮件后直接用新密码签发新的 JWT ,传给前端后就相当于登录了。

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

@linonetwo
說到這個,我有點好奇Google或是Facebook的驗證機制是會發一個長期的令牌,程式需要用這個長期令牌去調用短期(大概1Hr)令牌,再用短期令牌去調用驗證以外的API,這樣做的優勢是什麼?

怕令牌在傳輸過程中外洩?

@linonetwo
Copy link
Contributor

可能是为了像 Github 的 Personal Access Token 那样细粒度管理吧,EOS 也是这样,有多级的密钥,权限不一样,这样可以把低级的 token 比较随意地使用吧。

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

是說我有做應用程式密碼的設計,但好像在我們網站紅起來前沒什麼用

@linonetwo
Copy link
Contributor

不红也得有嘛,毕竟是新时代的项目

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

我覺得最重要的反機器人驗證目前還沒頭緒,怎麼辦好?

@misaka10055
Copy link
Collaborator

misaka10055 commented Aug 8, 2019

@r1235613 我查了一下,Google 的 reCAPTCHA 验证码服务在大陆是可以用的。只是需要把 API 域名改为 http://recaptcha.google.cn/ 或者 http://recaptcha.net/

Source

@r1235613
Copy link
Collaborator Author

r1235613 commented Aug 8, 2019

@linonetwo 大身處牆內,請他試試看好了
這問題可以移駕前端專案:exxhentai/rehentai-frontend#5 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants