Add GitHub auth (#3095)

This commit is contained in:
Acid Chicken (硫酸鶏)
2018-11-04 22:03:55 +09:00
committed by syuilo
parent 8d7c033cf5
commit 8646a9c49c
14 changed files with 416 additions and 8 deletions

View File

@ -13,6 +13,7 @@
<ui-input v-if="user && user.twoFactorEnabled" v-model="token" type="number" required styl="fill"/>
<ui-button type="submit" :disabled="signing">{{ signing ? '%i18n:@signing-in%' : '%i18n:@signin%' }}</ui-button>
<p style="margin: 8px 0;">%i18n:@or% <a :href="`${apiUrl}/signin/twitter`">%i18n:@signin-with-twitter%</a></p>
<p style="margin: 8px 0;">%i18n:@or% <a :href="`${apiUrl}/signin/github`">%i18n:@signin-with-github%</a></p>
</form>
</template>